How to make an empty generator?

Stephen Hansen apt.shansen at gmail.com
Thu Feb 18 18:40:01 EST 2010


On Thu, Feb 18, 2010 at 3:36 PM, Stephen Hansen <apt.shansen at gmail.com>wrote:

> My motivation is clarity, I can just see a colleague a year from now asking
> me, "... what the hell is return / yield?" and although this is more
> expensive, its less clear to me.
>

MORE clear to me. A class / decorator / whatever may be more expensive then
return / yield, but it reads better and is more clear, to me.

Not less.

Ahem.

--S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100218/8ee501af/attachment.html>


More information about the Python-list mailing list