[Python-Dev] New syntax for 'dynamic' attribute access (original) (raw)
Neil Schemenauer nas at arctrix.com
Tue Feb 13 06:05:14 CET 2007
- Previous message: [Python-Dev] New syntax for 'dynamic' attribute access
- Next message: [Python-Dev] safety of Py_CLEAR and self
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] New syntax for 'dynamic' attribute access
- Next message: [Python-Dev] safety of Py_CLEAR and self
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]