[Python-ideas] PEP 479: Change StopIteration handling inside generators
Chris Angelico
rosuav at gmail.com
Thu Nov 20 06:38:01 CET 2014
On Thu, Nov 20, 2014 at 4:30 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> the other one said that the whole problem is that generators exist in
> the first place, Python should get rid of them and allow people to
> define their own using macros (he likes to think of himself as a Lisp
> and Scheme guru :-)
There's a language that lets you define anything you like. It's called
"file on disk". If you don't like how it runs, you just put a little
shebang at the top and the whole rest of the file is interpreted
differently...
On one side of the balance is code breakage. On the other side is
currently broken code where bugs will be found. Which is the stronger
argument? I'm inclined toward the latter, but neither has a huge body
of code to back it.
ChrisA
More information about the Python-ideas
mailing list