(why) inconsistent yield/return syntax?
Gerrit Holl
gerrit at nl.linux.org
Mon Feb 10 16:18:42 EST 2003
Gerrit Holl schreef op maandag 10 februari om 20:53:47 +0000:
> 45 >>> def f(): return
> 45 ...
> 46 >>> def f(): yield
> File "<stdin>", line 1
> def f(): yield
>
> Why is there a difference?
Thanks for all your answers. I should have said that my question is
a design question, but I did not know even after a PEP is accepted
the responsibilty lies by the PEP author. I learned at least that.
I just thought it is a strange inconsistency...
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