[Python-ideas] keyword for introducing generators
Jonas Wielicki
j.wielicki at sotecware.net
Sun Aug 17 00:17:53 CEST 2014
On 16.08.2014 23:46, Neil Girdhar wrote:
> I'm sure this has been suggested before, but I just spent two days trying
> to figure out why a method wasn't being called only to find that I'd
> accidentally pasted a yield into the function. What is the argument
> against a different keyword for introducing generator functions/methods?
>
> If it's backward compatibility, then my suggestion to have a from
> __future__ and then make it real in Python 4.
For what it’s worth, I know this problem very well, and it can take
hours to figure out whats wrong.
regards,
jwi
>
> Neil
>
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
More information about the Python-ideas
mailing list