-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
remove import of is_* in rings.all #15076
Comments
Author: Frédéric Chapoton |
comment:1
This should be ok, unless I have made a mistake This is a little "patchbomb", so it would be great if it could be reviewed quickly. |
comment:2
Well, I have only taken care of what happens at startup ! There probably remains many imports not triggered at startup.. Let us see what the bot says. |
comment:4
I have made sure that tests pass in
but of course, there are many other places where to look .. |
comment:5
ok, this should be ready for review. It would be great if the bot could run on the ticket.. apply trac_15076_remove_global_is_in_rings.patch |
comment:7
new version of the patch, that hopefully the bot will like |
comment:8
apply only trac_15076_remove_global_is_in_rings.patch |
comment:9
apply only trac_15076_remove_global_is_in_rings.patch |
comment:10
apply only trac_15076_remove_global_is_in_rings.patch |
Attachment: trac_15076_remove_global_is_in_rings.patch.gz replaces previous patch |
comment:11
apply only trac_15076_remove_global_is_in_rings.patch |
comment:12
Hey, the bot is happy ! Is there anybody wanting to review this patch ? |
comment:13
Oh. Well, if it is happy... Nathann |
comment:14
Hmmmmmmmm.... Actually I wonder if those methods shouldn't be deprecated first, as those who used them may not know where they moved... I used Nathann |
comment:15
These were deprecated for many years. Try them in vanilla sage. |
comment:16
Oh I see ! But then why don't we just remove the deprecated version of the functions too ? It looks like the deprecated functions are not in the namespace anymore, but that they are still defined -- and deprecated somewhere Nathann |
comment:17
What do you mean ? These functions are not deprecated, it's their import in the global namespace that is. By the way, even after these patch, some of them will still be imported in the global namespace, and a follow-up ticket will be needed. I prefer to proceed step-by-step. |
comment:18
Oh. Well, what I wondered is which part of the code deprecated the version of these But I just noticed that it was actually a global piece of code, which deprecated all these Anyway : all is good, and this patch can go. My excuses for the delay Nathann |
Reviewer: Nathann Cohen |
comment:19
(and here is where this global piece of code was added, just in case somebody else would like to know : #10107) |
comment:20
Thanks for looking into this Nathann. I really didn't get time to dig into this patch. |
Merged: sage-5.13.beta1 |
As a big first step towards #14329, I propose to remove all imports of methods is_[A-Z] in sage/rings/all.py
CC: @ppurka @nathanncohen
Component: build
Keywords: deprecation cleanup
Author: Frédéric Chapoton
Reviewer: Nathann Cohen
Merged: sage-5.13.beta1
Issue created by migration from https://trac.sagemath.org/ticket/15076
The text was updated successfully, but these errors were encountered: