PEP 255: Simple Generators

Glyph Lefkowitz glyph at twistedmatrix.com
Mon Jun 25 19:50:17 EDT 2001


On Sun, 24 Jun 2001, Barry A. Warsaw wrote:

> 
> >>>>> "GL" == Glyph Lefkowitz <glyph at twistedmatrix.com> writes:
> 
>     GL> If python's answer to "what should we do with new feature X"?
>     GL> is "add a keyword" it will turn into Perl before too long.  I
>     GL> think that most of us agree that print>> is a disturbing
>     GL> symptom of this already :)
> 
> Why?  No keywords were added. :)

Neither are any keyword additions required to make

 _-__<<__+__>>__-_

a syntactically valid statement (in fact, it already is), but I still
think it smacks somewhat of perl.  Turning it into an interpreter-enforced
idiom would be a bad idea :)

                      ______      __   __  _____  _     _
                     |  ____ |      \_/   |_____] |_____|
                     |_____| |_____  |    |       |     |
                     @ t w i s t e d m a t r i x  . c o m
                     http://twistedmatrix.com/users/glyph







More information about the Python-list mailing list