[Python-ideas] Can you explain me why that is a bad idea?

Chris Angelico rosuav at gmail.com
Fri Oct 25 16:44:59 CEST 2013


On Sat, Oct 26, 2013 at 1:12 AM, neuro <neurofag at gmail.com> wrote:
> This is Guido answer:
> Someone on python-ideas at python.org can probably explain why that is a bad
> idea.
>

Well, firstly, it's generally better to take things to a mailing list
than to personally email the BDFL :) You're fortunate - seems you got
a reply (and a courteous and helpful one at that); most busy people
would just delete your email and move on.

As to the "for... in... if" sequence - it's been discussed quite a few
times. It might seem nice and clean in simple cases, but invariably
you come up against some messy edge cases before long. The first one
to deal with is the parser ambiguity with the ternary operator.

ChrisA


More information about the Python-ideas mailing list