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 serhiy.storchaka
Recipients Oren Milman, barry, serhiy.storchaka, terry.reedy, vstinner
Date 2017-04-16.07:05:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492326336.45.0.761441180966.issue29839@psf.upfronthosting.co.za>
In-reply-to
Content
> The doc does not specify that 'length' cannot be non-negative.

It does. https://docs.python.org/3/reference/datamodel.html#object.__len__

.. method:: object.__len__(self)

   Called to implement the built-in function :func:`len`.  Should return the length
   of the object, an integer ``>=`` 0.
History
Date User Action Args
2017-04-16 07:05:36serhiy.storchakasetrecipients: + serhiy.storchaka, barry, terry.reedy, vstinner, Oren Milman
2017-04-16 07:05:36serhiy.storchakasetmessageid: <1492326336.45.0.761441180966.issue29839@psf.upfronthosting.co.za>
2017-04-16 07:05:36serhiy.storchakalinkissue29839 messages
2017-04-16 07:05:36serhiy.storchakacreate