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 peter.fankhaenel
Recipients peter.fankhaenel
Date 2011-05-23.14:24:02
SpamBayes Score 0.00044732666
Marked as misclassified No
Message-id <1306160642.73.0.477719318482.issue12159@psf.upfronthosting.co.za>
In-reply-to
Content
An OverflowError is emitted in case the return value of __len__
exceeds 2**31-1.

The following code:

class C (object):
    def __len__ (self):
       return self.l

c = C()
c.l = 2**31

len (c)

# leads to an OverflowError in the last line. It works flawless for

c.__len__ ()
History
Date User Action Args
2011-05-23 14:24:02peter.fankhaenelsetrecipients: + peter.fankhaenel
2011-05-23 14:24:02peter.fankhaenelsetmessageid: <1306160642.73.0.477719318482.issue12159@psf.upfronthosting.co.za>
2011-05-23 14:24:02peter.fankhaenellinkissue12159 messages
2011-05-23 14:24:02peter.fankhaenelcreate