why len(list) instead of list.len() ?

Mark McEahern marklists at mceahern.com
Tue Jun 18 06:45:16 EDT 2002


[Markus Jais]
> I way wondering why one has to write
>
> list = [2, 3, 5]
> print len(list)
>
> instead of list.len()

<yawn>  Imagine for one moment that you are not the first person to wonder
this.  Why not search the newsgroup's archives for the umpteen times this
topic has come up, peruse them, and if you find a new angle on the
discussion, please, share it with us.

Cheers,

// mark

-






More information about the Python-list mailing list