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 brett.cannon
Recipients Michal Kononenko, brett.cannon, docs@python
Date 2019-04-25.17:53:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1556214794.29.0.248846716456.issue36720@roundup.psfhosted.org>
In-reply-to
Content
There is probably validation code in len(), but the method itself can do whatever it wants if you call it directly. So the documentation is accurate in saying the method _should_ return >= 0 but that there's nothing strictly enforcing that in Python for that specific method when defined and called directly.
History
Date User Action Args
2019-04-25 17:53:14brett.cannonsetrecipients: + brett.cannon, docs@python, Michal Kononenko
2019-04-25 17:53:14brett.cannonsetmessageid: <1556214794.29.0.248846716456.issue36720@roundup.psfhosted.org>
2019-04-25 17:53:14brett.cannonlinkissue36720 messages
2019-04-25 17:53:14brett.cannoncreate