Message340851
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. |
|
Date |
User |
Action |
Args |
2019-04-25 17:53:14 | brett.cannon | set | recipients:
+ brett.cannon, docs@python, Michal Kononenko |
2019-04-25 17:53:14 | brett.cannon | set | messageid: <1556214794.29.0.248846716456.issue36720@roundup.psfhosted.org> |
2019-04-25 17:53:14 | brett.cannon | link | issue36720 messages |
2019-04-25 17:53:14 | brett.cannon | create | |
|