(why) inconsistent yield/return syntax?

Chad Netzer cnetzer at mail.arc.nasa.gov
Mon Feb 10 16:02:47 EST 2003


On Mon, 2003-02-10 at 12:41, Gerrit Holl wrote:

> But it was:
>  46 >>> def f(): yield
>    File "<stdin>", line 1
>        def f(): yield

Try 'yield None'

-- 
Bay Area Python Interest Group - http://www.baypiggies.net/

Chad Netzer
(any opinion expressed is my own and not NASA's or my employer's)







More information about the Python-list mailing list