compatibility.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. """
  2. .. deprecated:: 1.10
  3. ``sympy.core.compatibility`` is deprecated. See
  4. :ref:`sympy-core-compatibility`.
  5. Reimplementations of constructs introduced in later versions of Python than
  6. we support. Also some functions that are needed SymPy-wide and are located
  7. here for easy import.
  8. """
  9. from sympy.utilities.exceptions import sympy_deprecation_warning
  10. sympy_deprecation_warning("""
  11. The sympy.core.compatibility submodule is deprecated.
  12. This module was only ever intended for internal use. Some of the functions
  13. that were in this module are available from the top-level SymPy namespace,
  14. i.e.,
  15. from sympy import ordered, default_sort_key
  16. The remaining were only intended for internal SymPy use and should not be used
  17. by user code.
  18. """,
  19. deprecated_since_version="1.10",
  20. active_deprecations_target="deprecated-sympy-core-compatibility",
  21. )
  22. from .sorting import ordered, _nodes, default_sort_key # noqa:F401
  23. from sympy.utilities.misc import as_int as _as_int # noqa:F401
  24. from sympy.utilities.iterables import iterable, is_sequence, NotIterable # noqa:F401