Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: Generator Frustration Date: Sun, 05 Jun 2011 13:43:07 +1200 Lines: 12 Message-ID: <95059eFuroU1@mid.individual.net> References: <4dea7932$0$28716$607ed4bc@cv.net> <4dead453$0$29996$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net sivvpceQWeJadM0sFc2PjgcSvSleZqpztDeh9vrlIxAQSJ+A4z Cancel-Lock: sha1:TI69q3rBCoeJLXK/K3yJyV7AEio= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: <4dead453$0$29996$c3e8da3$5496439d@news.astraweb.com> Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7029 Steven D'Aprano wrote: > A nice piece of syntax that has been proposed for Python is "yield from", > which will do the same thing, but you can't use that yet. Unless you're impatient enough to compile your own Python with my patch applied: http://www.cosc.canterbury.ac.nz/greg.ewing/python/yield-from/yield_from.html -- Greg