Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

No xrange in Py3 #136

Closed
akruis opened this issue Oct 8, 2017 · 1 comment
Closed

No xrange in Py3 #136

akruis opened this issue Oct 8, 2017 · 1 comment

Comments

@akruis
Copy link

akruis commented Oct 8, 2017

There is no xrange function in Python 3, but in out Python code in 3.x-slp:

anselm@Emmy:~/src/slp_ws/stackless36$ find Stackless -type f | xargs grep xrange
Stackless/test/taskspeed.py: xrange = range
Stackless/test/taskspeed.py: for i in xrange(0, n, 20):
Stackless/test/taskspeed.py: for i in xrange(0, n, 20):
Stackless/test/taskspeed.py: for i in xrange(0, n, 20):
Stackless/test/taskspeed.py: for i in xrange(0, n, 20):
Stackless/test/schedtest.py: for i in xrange(n):
Stackless/test/schedtest.py: for i in xrange(n):
Stackless/test/temptest.py: for i in xrange(0, n, 20):
Stackless/demo/counter.py: for i in xrange(n):
Stackless/demo/autoscheduling.py: for ii in xrange(1000):
Stackless/unittests/support.py: for i in xrange(len(objects)):

The fix is trivial.

@akruis akruis added this to the v3.6.x-slp milestone Oct 8, 2017
akruis pushed a commit that referenced this issue Oct 29, 2017
Python 3 has no xrange.
akruis pushed a commit that referenced this issue Nov 5, 2017
Python 3 has no xrange.
(cherry picked from commit 1f9f0ba)
akruis pushed a commit that referenced this issue Nov 5, 2017
@akruis
Copy link
Author

akruis commented Nov 5, 2017

Fixed.

@akruis akruis closed this as completed Nov 5, 2017
akruis pushed a commit that referenced this issue Mar 25, 2018
Avoid importing `sysconfig` from `site` by copying minimum code.
Python startup is 5% faster on Linux and 30% faster on macOS
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant