[Python-Dev] one more thing for 2.2?
Guido van Rossum
guido@digicool.com
Thu, 12 Jul 2001 17:02:30 -0400
> has anyone looked at Paul Svensson's "unreserved words" patch?
>
> http://mail.python.org/pipermail/python-list/2001-June/047996.html
>
> "The bottom line: apply this patch, and you can use all of Python's
> 'reserved words' as identifiers; in most cases right away, in all other
> cases by wrapping parens around them."
Wow, an impressive hack. But a hack! Lots of special casing, and
breaks abstractions: the parser driver is supposed to know nothing
about the actual grammar embodied in its tables.
And it won't help with yield: things like
yield (1)
yield [1]
are as valid in the old syntax as they are with the yield statement
added.
--Guido van Rossum (home page: http://www.python.org/~guido/)