Menu

Commit [r23606]  Maximize  Restore  History

The built in Python range() function is no longer being replaced by xrange().

Replacing builtin.range() with builtin.xragne() on Python 2 was causing problems with Python
site-packages which were not Python 3 compliant. This includes old numpy versions.

The original overwriting of range() with xrange() was for both speed and memory conservation.
However profiling the system tests, the time for all tests did not change significantly.

This change may cause problems in certain places in relax on memory constrained computer systems,
so it may need to be reverted in the future.

bugman 2014-05-29

changed /trunk/lib/compat.py
/trunk/lib/compat.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.