Skip to content

Commit

Permalink
Defer some changes to all__sagemath_repl until sagemath#36566
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe authored and saraedum committed Apr 14, 2024
1 parent f2b24cb commit 4d36d9c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 30 deletions.
25 changes: 24 additions & 1 deletion src/sage/misc/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,35 @@
lazy_import('sage.misc.misc', 'union',
deprecation=32096)

from sage.misc.dev_tools import import_statements

from sage.misc.edit_module import edit

from sage.misc.remote_file import get_remote_file

lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259)
lazy_import('sage.misc.pager', 'pager')

from sage.misc.classgraph import class_graph

lazy_import("sage.misc.cython", "cython_lambda")
lazy_import("sage.misc.cython", "cython_compile", "cython")

# Following will go to all__sagemath_repl.py in #36566
from sage.misc.explain_pickle import explain_pickle, unpickle_newobj, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends

lazy_import('sage.misc.inline_fortran', 'fortran')

lazy_import('sage.misc.banner', 'banner', deprecation=34259)
lazy_import('sage.misc.dev_tools', 'runsnake', deprecation=34259)
lazy_import('sage.misc.edit_module', 'set_edit_template', deprecation=34259)
lazy_import('sage.misc.profiler', 'Profiler', deprecation=34259)
lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259)
lazy_import('sage.misc.trace', 'trace', deprecation=34259)
lazy_import('sage.misc.package', ('installed_packages', 'is_package_installed',
'standard_packages', 'optional_packages',
'experimental_packages', 'package_versions'),
deprecation=34259)
lazy_import('sage.misc.benchmark', 'benchmark', deprecation=34259)
lazy_import('sage.repl.interpreter', 'logstr', deprecation=34259)

# Following will go to all__sagemath_objects.py in #36566
Expand Down
29 changes: 0 additions & 29 deletions src/sage/misc/all__sagemath_repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,9 @@

from sage.misc.banner import version

lazy_import('sage.misc.banner', 'banner', deprecation=34259)

lazy_import('sage.misc.sagedoc', ['browse_sage_doc',
'search_src', 'search_def', 'search_doc',
'tutorial', 'reference', 'manual', 'developer',
'constructions', 'help'])

lazy_import('pydoc', 'help', 'python_help')

from sage.misc.explain_pickle import explain_pickle, unpickle_newobj, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends

lazy_import('sage.misc.trace', 'trace', deprecation=34259)

lazy_import('sage.misc.profiler', 'Profiler', deprecation=34259)

from sage.misc.dev_tools import import_statements

lazy_import('sage.misc.dev_tools', 'runsnake', deprecation=34259)

from sage.misc.edit_module import edit

lazy_import('sage.misc.edit_module', 'set_edit_template', deprecation=34259)

lazy_import('sage.misc.pager', 'pager')


lazy_import("sage.misc.cython", "cython_lambda")
lazy_import("sage.misc.cython", "cython_compile", "cython")
lazy_import('sage.misc.inline_fortran', 'fortran')

lazy_import('sage.misc.package', ('installed_packages', 'is_package_installed',
'standard_packages', 'optional_packages',
'experimental_packages', 'package_versions'))

lazy_import('sage.misc.benchmark', 'benchmark', deprecation=34259)

0 comments on commit 4d36d9c

Please sign in to comment.