[Python-3000] Reserve "pragma" keyword in Python 3.0?
musiccomposition at gmail.com
Sat Mar 22 00:37:49 CET 2008
On Fri, Mar 21, 2008 at 6:26 PM, Larry Hastings <larry at hastings.org> wrote:
> I think Python needs a dedicated "pragma" syntax; we already have two
> pragma syntaxes ("from __future__ import" and "# coding"), and I think a
> syntax designed for expressing pragmas would be much clearer than using
> existing language features in weird ways to express pragmas. But that's
> a debate for another day.
> Today's topic is much smaller in scope: can I get support for making
> "pragma" a reserved keyword in Python? Guido himself suggested doing
> that back in August of 2000 during a previous pragma-y discussion:
> I'm not proposing that the keyword do anything, just that "pragma" be
> reserved for future expansion, and therefore be illegal for use as an
> identifier. For now any use of it would be an error.
> If there's some chance it would be accepted, I would happily make the
If we did this, there'd be a deprecation warning in 2.x, and we'd make
keyword in 3.x
> Driving the thin end of the wedge,
> Python-3000 mailing list
> Python-3000 at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-3000