Why does Python mix OO concepts and non OO concepts for operation s on basic types?

Jarno J Virtanen jajvirta at cc.helsinki.fi
Wed May 22 15:02:28 EDT 2002


Wed, 22 May 2002 13:13:06 -0500 Michael Bauers wrote:
> 
> Why do you say x = []; x.append('a'), but get the length with len(a) ?
> 
> Is there a reason for this sort of inconsistency?

why not check the FAQ?

	http://www.python.org/cgi-bin/faqw.py?req=all#6.5



More information about the Python-list mailing list