Skip to content

Commit 1b0859c

Browse files
committed
One cannot import xrange from core.compatibility anymore
xrange was removed from SymPy codebase in sympy#8936, and compatibility.py no longer defines it. So it should not recommend importing it, either.
1 parent 5b584b7 commit 1b0859c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sympy/core/compatibility.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
* Python 2 `__builtins__`, access with Python 3 name, `builtins`
4646
4747
Iterator/list changes:
48-
* `xrange` removed in Python 3, import `xrange` for Python 2/3 compatible
49-
iterator version of range
48+
* `xrange` renamed as `range` in Python 3, import `range` for Python 2/3
49+
compatible iterator version of range.
5050
5151
exec:
5252
* Use `exec_()`, with parameters `exec_(code, globs=None, locs=None)`

0 commit comments

Comments
 (0)