PEP 255: Simple Generators

Toby Dickenson tdickenson at devmail.geminidataloggers.co.uk
Mon Jun 25 05:18:43 EDT 2001


Glyph Lefkowitz <glyph at twistedmatrix.com> wrote:

>If generators are
>implemented as a syntax feature, then microthreads are implemented as a
>module (or should we have syntax for that too?  'task' anyone?) then we're
>again falling prey to a sin of perl; there will be more than one way to do
>it.

In todays python there are two ways to create a class. The simple way
is to use the 'class' statement. Alternatively if you need more
under-the-covers control, use the 'new' module.

Im not sure if that a useful analogy or not.



Toby Dickenson
tdickenson at geminidataloggers.com



More information about the Python-list mailing list