Please comment on Draft PEP for Enhanced Generators

Raymond Hettinger othello at javanet.com
Wed Jan 30 14:37:06 EST 2002


Based on the comments received this morning, I've updated the PEP.

The changes are:

- Added Skip Montanaro's version of xfilter and xmap which avoid the use of
lambda.

- Added reference to Python Cookbook version of xmap and stated why it was
not used.

- Discussed Pete Skinner's idea for making the argument to yield optional.

- Discussed why .submit() was used instead of overloading .next().

- Referenced a SourceForge proposal to "fix" list comprehensions so they
will have own scope.

- Added Michael Chermside's thoughts on the need for two-way parameter
passing.

- Fixed the embedded HTML title.


Raymond Hettinger


"Raymond Hettinger" <othello at javanet.com> wrote in message
news:a38c1u$945$1 at bob.news.rcn.net...
> I have written a draft PEP summarizing proposed enhancements to
generators:
> http://users.javanet.com/~othello/download/genpep.htm
>
> The draft reflects all the comments I've received to date on the threads
> where
> the ideas where first proposed.
>
> Please post your comments (and maybe a little encouragment) here on
> comp.lang.py or email them directly to me.
>
> Thank you,
>
>
> Raymond Hettinger
> othello at javanet.com
>
>





More information about the Python-list mailing list