A counter-proposal to __future__ in PEP 236

Joshua Marshall jmarshal at mathworks.com
Thu Mar 1 13:01:09 EST 2001


Martin von Loewis <loewis at informatik.hu-berlin.de> wrote:
...
> In this implementation, directive is only considered as a keyword if
> it appears at the beginning of the module. Therefore, code that
> happens to use directive as an identifier will not break (unless it
> assigns to directive as the first thing in the module).

Note that it doesn't need to be implemented this way.  Currently,

  directive foo

is a syntax error.  Meaning can be assigned to this syntax without
breaking any existing code--it is unambiguous.



More information about the Python-list mailing list