[Python-Dev] New syntax for 'dynamic' attribute access (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Tue Feb 13 11:22:48 CET 2007


Georg Brandl schrieb:

a.([b]) No. (you can't write a([b]) today)

Actually, you can, but it means something

a . [ b ] Yes. (you can write a . b today)

OTOH, you can't write

x + = 2

or

a = 2 * * 4

so it's not that obvious that .[ should be two tokens.

Regards, Martin



More information about the Python-Dev mailing list