[Python-Dev] New syntax for 'dynamic' attribute access
Armin Rigo
arigo at tunes.org
Wed Feb 14 12:56:19 CET 2007
Hi Michael,
On Tue, Feb 13, 2007 at 11:55:46PM +0000, Michael Foord wrote:
> > x = *('variable%d' % n)
> > f(a, b, *('keyword%d' % n) = c)
> > class *('33strangename'):
> > pass
> > def *(funcname)(x, y, *(argname), *args, **kwds):
> > pass
> > import *modname as mymodule
> >
> Are you for these uses or mocking them ? Some of them look interesting...
I don't actually have any strong opinion, I was just exploring all the
places in the grammar that say NAME... Some of the above are definitely
just absurd. In general I am failing to see much the point of syntax
extensions, so I'll step out of this discussion again.
Armin
More information about the Python-Dev
mailing list