[issue17433] stdlib generator-like iterators don't forward send/throw

2013-03-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> committed/rejected status: open -> closed superseder: -> Implement generator interface in itertools.chain. ___ Python tracker ___ _

[issue17433] stdlib generator-like iterators don't forward send/throw

2013-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue17433] stdlib generator-like iterators don't forward send/throw

2013-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was proposed before (see issue16150) and was rejected after discussing on Python-ideas. -- nosy: +serhiy.storchaka ___ Python tracker __

[issue17433] stdlib generator-like iterators don't forward send/throw

2013-03-18 Thread Thomas Wouters
Thomas Wouters added the comment: After writing a simplistic implementation of this for itertools.islice, I'm not sure if this is actually useful. While it's nice for symmetry, I have a hard time imagining how to use it -- so I can't write tests for the new feature, and it may not be a useful

[issue17433] stdlib generator-like iterators don't forward send/throw

2013-03-15 Thread Thomas Wouters
New submission from Thomas Wouters: In response to a question asked at Brett Cannon's Python 3.3 talk at PyCon, it occurs to me the iterators in the itertools module should participate in generator sending, so that you can do this: def report_first_ten(g): s = itertools.islice(g, 10) y