T
Thomas Guettler
Hi,
The function len() is not mentioned in the Python 3000 PEPs.
I suggest that at least lists, tupples, sets, dictionaries and strings
get a len() method. I think the len function can stay, removing it
would break to much code. But adding the method, would bu usefull.
Yes, I know, that I can call .__len__() but that is ugly.
I have read the FAQ to the len function:
http://www.python.org/doc/faq/gener...st-index-but-functions-for-other-e-g-len-list
The function len() is not mentioned in the Python 3000 PEPs.
I suggest that at least lists, tupples, sets, dictionaries and strings
get a len() method. I think the len function can stay, removing it
would break to much code. But adding the method, would bu usefull.
Yes, I know, that I can call .__len__() but that is ugly.
I have read the FAQ to the len function:
http://www.python.org/doc/faq/gener...st-index-but-functions-for-other-e-g-len-list