len() and PEP 3000

Ross Ridge rridge at csclub.uwaterloo.ca
Sun Dec 10 00:49:13 EST 2006


Colin J. Williams wrote:
> __len__ is not very special and the
> property len eliminates the redundant parentheses.

tac-tics 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.

                                    Ross Ridge




More information about the Python-list mailing list