This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients brechtm, mark.dickinson, pitrou, skrah
Date 2012-04-20.11:53:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334922791.66.0.451260420395.issue14630@psf.upfronthosting.co.za>
In-reply-to
Content
Self-contained example that fails for me on 32-bit OS X.




class Integer(int):
    def __new__(cls, value, base=10, indirect=False):
        try:
            obj = int.__new__(cls, value, base)
        except TypeError:
            obj = int.__new__(cls, value)
        return obj

    def __init__(self, value, base=10, indirect=False):
        self.indirect = indirect


integers = []
for i in range(1000):
    integer = Integer(b'0')
    integers.append(integer)

for integer in integers:
    assert int(integer) == 0
History
Date User Action Args
2012-04-20 11:53:11mark.dickinsonsetrecipients: + mark.dickinson, pitrou, skrah, brechtm
2012-04-20 11:53:11mark.dickinsonsetmessageid: <1334922791.66.0.451260420395.issue14630@psf.upfronthosting.co.za>
2012-04-20 11:53:11mark.dickinsonlinkissue14630 messages
2012-04-20 11:53:11mark.dickinsoncreate