New PEP: The directive statement

Tim Peters at
Sat Mar 24 08:23:16 CET 2001

[Joshua Marshall]
> Please, no more keywords.  It's unnecessary in this case.
> How about an interpreter switch:
>   python -directive nested_scopes

Impractical.  For a hint of *how* impractical, note that a few std library
modules in the 2.1 release require nested_scopes:  you would have to specify
the names of those modules on the cmdline every time you ran Python for
anything.  Now picture your own .py files on top of that, and twenty
libraries you get from other people.  Pure nightmare.

PEP 236 handles this stuff without a new keyword.  But it's limited to future
statements, and Python probably does need a general directive facility too.

    y'rs  - tim

More information about the Python-list mailing list