-
-
Notifications
You must be signed in to change notification settings - Fork 701
Accept both 'implementation' and 'impl' parameters for GF() #41189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Accept both 'implementation' and 'impl' parameters for GF() #41189
Conversation
vincentmacri
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add "Fixes #40806" to the PR description?
I have one small requested change for now. I'll take a closer look next week if nobody else gets to reviewing this first. And same comment I made on your last PR still applies:
Since you're a first-time contributor GitHub permissions make running the CI kind of annoying. To speed things up, please run at least the ruff linter locally and make sure our required rules are passing on any files you've changed before pushing your changes (see https://doc.sagemath.org/html/en/developer/tools.html for how to run ruff locally)
After you make the requested change and verify that the linter is passing locally, tag sagemath/core to ask for the CI run to be approved.
| """ | ||
| for key, val in kwds.items(): | ||
| if key not in ['structure', 'implementation', 'prec', 'embedding', 'latex_names']: | ||
| if key not in ['structure', 'implementation', 'prec', 'embedding', 'latex_names', 'impl']: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if key not in ['structure', 'implementation', 'prec', 'embedding', 'latex_names', 'impl']: | |
| if key not in ['structure', 'prec', 'embedding', 'latex_names', 'impl']: |
Not needed since implementation is an explicit keyword argument.
|
@rgabhi2526 pointed out #35609 which was also implementing this but stalled. Looks like there were more substantial changes there, I'll need to look into if those are needed here. If so we should add those commits in a way that @Newtech66 gets credit for the previous work in the commit history (I'll need to look up the git commands for that). |
|
@roed314 please run this workflow, thank you |
If we can cherry-pick #35609 directly? |
Do you mean as a separate PR or as part of this PR? Either way, need to figure out which commits to cherry-pick. I think the changes to the main function in this PR are a bit cleaner than in the older PR, but the older PR has a lot of documentation updates that are missing from this one. Those are minor though, so it might be easier to defer cherry-picking to a followup PR. The other PR also made a change somewhere in categories because the way they fixed it exposed some other bug. We need to check if that's an issue here (I'm guessing that's why the tests failed, but I need to check). |
…rings, with deprecation.
|
@adnanbhat7 I opened adnanbhat7#1 in your repo to cherry-pick changes from the related #35609 and reconcile the resulting merge conflicts. Also some minor cleanup to your stuff. I've marked it as a draft PR until I finish running tests locally, once I verify that it works locally I'll unmark it as a draft and if you agree with the changes I'm suggesting then you can merge my PR into your branch, which will then update this PR. With the amount of changes I'm suggesting (even though they are actually just cherry-picking from someone else's work), a second person should probably approve this. @cxzhong can you review this once it's ready? |
Gf impl code review suggestions
|
Everything is passing locally. @roed314 Can we get another CI run? |

1.Changed primary parameter from impl to implementation in docstrings
2.Marked impl as deprecated (backwards compatibility)
3.Updated examples to use implementation instead of impl
4.Added examples showing both parameters work
5. clean commit history
@nbruin review this
📝 Checklist
⌛ Dependencies
related to #41123