镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

No xrange in Py3 #136

Closed
Closed

Description

@akruis

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.

Activity

  1. added this to the v3.6.x-slp milestone on Oct 8, 2017
  2. added 4 commits that reference this issue on Oct 29, 2017
  3. akruis commented on Nov 5, 2017

    @akruis
    Author

    Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions