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

Max M maxm at mxm.dk
Tue Jun 18 20:22:43 CEST 2002

holger krekel wrote:

>>Because a two-line wrapper goes a long way?
>>Python 2.2 (#28, Dec 21 2001, 12:21:22) [MSC 32 bit (Intel)] on win32

I thought it was historical, because tupples didn't have methods.

I also find obj.len() more natural/logical. But I have learned to live 
with it...

regards Max M

More information about the Python-list mailing list