Message 136644 - Python tracker
Message136644
| 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:02 | peter.fankhaenel | set | recipients: + peter.fankhaenel |
| 2011-05-23 14:24:02 | peter.fankhaenel | set | messageid: <1306160642.73.0.477719318482.issue12159@psf.upfronthosting.co.za> |
| 2011-05-23 14:24:02 | peter.fankhaenel | link | issue12159 messages |
| 2011-05-23 14:24:02 | peter.fankhaenel | create | |