(why) inconsistent yield/return syntax?

Gerrit Holl gerrit at nl.linux.org
Mon Feb 10 14:54:49 EST 2003


Hi,

 45 >>> def f(): return
 45 ...
 46 >>> def f(): yield
  File "<stdin>", line 1
    def f(): yield

Why is there a difference?

yours,
Gerrit.

-- 
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list