My (late) beef with Simple Generator syntax (PEP 255)

Stuart D. Gathman stuart at bmsi.com
Wed Nov 13 20:52:47 EST 2002


On Wed, 13 Nov 2002 17:02:18 -0500, Cameron Horn wrote:

>> def nullgen():
>>    raise StopIteration
>>    yield "never called"

Yuck.  How about a built-in null generator that can be assigned to any
desired name?  It's not like the implementation needs to be customized or
anything :-)

-- 
	      Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.



More information about the Python-list mailing list