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 Rostyslav.Dzinko
Recipients Rostyslav.Dzinko, docs@python
Date 2012-08-17.11:17:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1345202279.02.0.767068523185.issue15718@psf.upfronthosting.co.za>
In-reply-to
Content
I've encountered that OverflowError which can happen in __len__ method is still undocumented, though one issue on this problem: http://bugs.python.org/issue12159 ended up with "need to be documented" comment.

Link to documentation: http://docs.python.org/reference/datamodel.html#object.__len__

I think it must be clarified that __len__ return value is constrained to upper boundary (Py_ssize_t c type) when you plan to call it via len() built-in function.
History
Date User Action Args
2012-08-17 11:17:59Rostyslav.Dzinkosetrecipients: + Rostyslav.Dzinko, docs@python
2012-08-17 11:17:59Rostyslav.Dzinkosetmessageid: <1345202279.02.0.767068523185.issue15718@psf.upfronthosting.co.za>
2012-08-17 11:17:58Rostyslav.Dzinkolinkissue15718 messages
2012-08-17 11:17:57Rostyslav.Dzinkocreate