[Python-Dev] New syntax for 'dynamic' attribute access
Neil Schemenauer
nas at arctrix.com
Tue Feb 13 06:05:14 CET 2007
M.-A. Lemburg <mal at egenix.com> wrote:
> You can add a -1 from me to the list as well: I don't think that
> dynamic lookups are common enough to warrant new syntax.
I agree. Also, I think the special syntax may make them too
inviting to new programmers, who haven't figured out that usually
there are better ways of doing things.
> Even if you do add a new syntax for this, using parenthesis is
> a poor choice IMHO as the resulting code looks too much like a
> function call (e.g. "callable.(variable)").
Yes. The .[] notation looks much better, IMO.
Neil
More information about the Python-Dev
mailing list