Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage/all.py: Restore sage.isfunction as a LazyImport
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jul 16, 2022
1 parent e884c9e commit 7a0ff3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sage/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,11 @@ def quit_sage(verbose=True):
# sys.settrace(poison_currRing)


# Deprecated leftover of monkey-patching inspect.isfunction() to support Cython functions.
lazy_import('sage.misc.sageinspect', 'is_function_or_cython_function',
as_='isfunction', namespace=sage.__dict__, deprecation=32479)


# Set a new random number seed as the very last thing
# (so that printing initial_seed() and using that seed
# in set_random_seed() will result in the same sequence you got at
Expand Down

0 comments on commit 7a0ff3f

Please sign in to comment.