Author r.david.murray
Recipients docs@python, ezio.melotti,, pitrou, r.david.murray, rhettinger
Date 2013-10-23.14:05:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Perhaps it would be better to say that "the argument may be any object with a __len__, such as the commonly used Python sequence and container types str, bytes, tuple, list, dict, and set".  After all, there are other built in types it works on as well: bytearray, frozenset, memoryview.

For the other, "the number of items in a sequence or container type" would mostly cover it, but at the cost of being a bit obscure.  Perhaps that's OK for the help text, though, since it is supposed to be a reminder, not the full documentation.  Another even more obscure alternative would be "the number of items in a Sized object", which would also be more accurate (since an object with a __len__ doesn't *have* to conform fully to the sequence or container ABCs...nor does a container *have* to implement __len__).
Date User Action Args
2013-10-23 14:05:54r.david.murraysetrecipients: + r.david.murray, rhettinger, pitrou, ezio.melotti, docs@python,
2013-10-23 14:05:54r.david.murraysetmessageid: <>
2013-10-23 14:05:54r.david.murraylinkissue19362 messages
2013-10-23 14:05:53r.david.murraycreate