Skip to content

[reported upstream] Bug in python range #1159

@robertwb

Description

@robertwb
%python
class MyInt:
    def __init__(self, n):
        self.n = int(n)
    def __int__(self):
        return self.n

print range(MyInt(2**3), MyInt(2**3+10))
print "here"
print range(MyInt(2**34), MyInt(2**34+10))

Fixed by #9958.

Upstream: Fixed upstream, in a later stable release.

Component: packages: standard

Reviewer: Jason Grout

Issue created by migration from https://trac.sagemath.org/ticket/1159

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions