len()

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Jan 27 18:16:02 EST 2009


En Tue, 27 Jan 2009 20:30:29 -0200, Tobiah <toby at tobiah.org> escribió:

> Just out of curiosity, why was len() made to
> be it's own function?  I often find myself
> typing things like my_list.len before I
> catch myself.

http://www.python.org/doc/faq/general/#why-does-python-use-methods-for-some-functionality-e-g-list-index-but-functions-for-other-e-g-len-list

and

http://groups.google.com/group/comp.lang.python/browse_thread/thread/782dcb8d62f28cdb/1480c3f3a1bf68bb#1480c3f3a1bf68bb
-- 
Gabriel Genellina




More information about the Python-list mailing list