Hwy doesn't len(None) return zero ?

Ian Kelly ian.g.kelly at gmail.com
Wed Jun 30 15:35:41 EDT 2010


On Wed, Jun 30, 2010 at 12:39 PM, Stef Mientki <stef.mientki at gmail.com> wrote:
> So I wonder why len is not allowed on None
> and if there are objections to extend the len function .

For the same reason that (None + 42) doesn't return 42, and that
(None.upper()) doesn't return NONE.



More information about the Python-list mailing list