-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
Various small improvements to imports #39276
base: develop
Are you sure you want to change the base?
Conversation
Mostly to try to reduce a few circular imports that happen when you don't import `sage.all`. A few of these changes are purely cosmetic.
b6662f6
to
3050d63
Compare
Documentation preview for this PR (built with commit b6f6411; changes) is ready! 🎉 |
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.
Maybe add some tests that the circular imports are fixed?
There's test_executable
convenience function.
src/sage/rings/rational.pyx
Outdated
@@ -182,7 +181,7 @@ cdef Rational_sub_(Rational self, Rational other): | |||
|
|||
return x | |||
|
|||
cdef Parent the_rational_ring = sage.rings.rational_field.Q | |||
cdef Parent the_rational_ring = Q |
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.
Not strictly related but maybe we can change to use QQ
instead
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.
and may be use from sage.rings.rational_field import Q as the_rational_ring
?
Mostly to try to reduce a few circular imports that happen when you don't import
sage.all
. A few of these changes are purely cosmetic.📝 Checklist
⌛ Dependencies