Message4630

Author pjenvey
Recipients pjenvey
Date 2009-05-03.21:51:20
SpamBayes Score 1.13126e-09
Marked as misclassified No
Message-id <1241387482.03.0.174780939338.issue1337@psf.upfronthosting.co.za>
In-reply-to
Content
In some places PySequence (and IIRC some other places) assume __len__ 
returns the real length of a sequence. That's not always the case for 
derived objects. This is bound to break something at some point

Most places (outside of PySequence) use the real size when they should 
(e.g. PyList/Tuple/String call size/length on themselves instead of 
__len__ when needed) but the base PySequence doesn't have that luxury. 
It should have a size() method it can rely on
History
Date User Action Args
2009-05-03 21:51:22pjenveysetrecipients: + pjenvey
2009-05-03 21:51:22pjenveysetmessageid: <1241387482.03.0.174780939338.issue1337@psf.upfronthosting.co.za>
2009-05-03 21:51:21pjenveylinkissue1337 messages
2009-05-03 21:51:21pjenveycreate