len() and PEP 3000
Klaas
mike.klaas at gmail.com
Sun Dec 10 04:03:57 EST 2006
On Dec 9, 9:49 pm, "Ross Ridge" <rri... at csclub.uwaterloo.ca> wrote:
> > One might say the current syntax eliminates the redundant dot.Make "len" an operator, like C's "sizeof", and eliminate the
> (hypothetical) dot, parenthesises and a name lookup.
Detect when a container is used in scalar context, and divine that the
length is requested.
We can think of arbitrarily-stupid ways of changing the perfectly
functional len(), but since it isn't going to change, why not drop this
topic?
-Mike
More information about the Python-list
mailing list