New submission from Peter Fankhaenel <pit00...@googlemail.com>: 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__ () ---------- components: Windows messages: 136644 nosy: peter.fankhaenel priority: normal severity: normal status: open title: Integer Overflow in __len__ versions: Python 2.6, Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12159> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com