-
-
Notifications
You must be signed in to change notification settings - Fork 481
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 some monkey patching in src/sage/__init__.py #31420
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:12
It seems that removing |
comment:13
We can probably move it (and also the |
Commit: |
comment:15
Do you also want New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Matthias Koeppe |
This comment has been minimized.
This comment has been minimized.
comment:19
Where does the |
comment:20
The |
comment:21
Call me obtuse, why do you import and then delete straight away? Is it a cleaner way to make sure that the right library is loaded while you may not want it around in this particular unit? |
comment:22
The importing there is just to trigger loading some shared library. |
comment:23
Thank you for taking the time to answer my questions. It looks good to go. |
Reviewer: François Bissey |
comment:24
Thanks for reviewing! |
Changed branch from u/mkoeppe/meta_ticket__review_remove_monkey_patching_in_src_sage___init___py to |
To make
sage
a namespace package, we need to get rid ofsrc/sage/__init__.py
.It currently contains:
__all__
(no longer needed; has no effect on completion, neither in plain python3 nor IPython)__version__
(unused)zlib
(introduced in Wrong zlib library might be loaded #23122)load_ipython_extension
(introduced in Do not import IPython at startup #18726): This function is defined in modulesage
so that%load_ext sage
works (see http://www.slabbe.org/blogue/categorie/ipython/); we forgot to define the corresponding function that would make%unload_ext sage
workinspect.isfunction
to support Cython functions (introduced in Add IPython support for Cython functions #25373)importlib.machinery.ExtensionFileLoader
(introduced in Fix Cython tracebacks on Python 3 #24681); the quest to get an upstream fix merged was apparently abandoned - bpo-32797: linecache should search for sources if loader doesn't find them python/cpython#6653In this ticket we remove the ones that are not needed any more, and some others to another module init. #32479 and #32489 will take care of the leftovers.
CC: @kiwifb @jhpalmieri @embray
Component: refactoring
Author: Matthias Koeppe
Branch/Commit:
af6642f
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/31420
The text was updated successfully, but these errors were encountered: