Comment on PEP-0238

Guido van Rossum guido at python.org
Sat Jul 7 14:18:58 EDT 2001


Skip Montanaro <skip at pobox.com> writes:

>     Guido> (Hm.  For various reasons I'm very tempted to introduce 'yield'
>     Guido> as a new keyword without warnings or future statements in Python
>     Guido> 2.2, so maybe I should bite the bullet and add 'div' as well...)
> 
>     C//> If one is going to add keywords to a language, I suggest that a
>     C//> list of possible future keywords -- even ones that aren't planned
>     C//> on being supported any time soon -- be reserved at the same time.
> 
> And that warnings be issued for their use for at least one version.

Good idea.  I'd have to fire up my time machine to figure out which
keywords will be used in the future though, and I'm not sure how
successful that would be.  C tried this and had a few unused reserved
words (I recall 'fortran') for years until they threw them out.

--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list