[Python-3000] Reserve "pragma" keyword in Python 3.0?

Benjamin Peterson 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:
>
>    http://mail.python.org/pipermail/python-dev/2000-August/008840.html
>
> 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
> patch.

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,
>
>
> /larry/
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe:
> http://mail.python.org/mailman/options/python-3000/musiccomposition%40gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20080321/6aecd2ca/attachment.htm 


More information about the Python-3000 mailing list