replacing `else` with `then` in `for` and `try`

Ian Kelly ian.g.kelly at gmail.com
Fri Nov 3 13:55:05 EDT 2017


On Fri, Nov 3, 2017 at 8:32 AM, Chris Angelico <rosuav at gmail.com> wrote:
> On Fri, Nov 3, 2017 at 10:49 PM, Jon Ribbens <jon+usenet at unequivocal.eu> wrote:
>> On 2017-11-03, Steve D'Aprano <steve+python at pearwood.info> wrote:
>>> On Fri, 3 Nov 2017 03:31 am, Jon Ribbens wrote:
>>>> No, it's an obvious bug. You have a 'for...else' with no 'break'.
>>>> Like I said, that should probably be a syntax error.
>>>
>>> It should absolutely not be a syntax error. There's no reason for it
>>> to be a syntax error, except to satisfy some arrogant and foolish
>>> idea of purity.
>>
>> It'd be nice if you could be a little less rude. It's not an "arrogant
>> and foolish idea of purity", it's to help people catch bugs in their
>> code, and to aid their understanding of the language.
>
> That wasn't rudeness. That was an accurate description of the
> situation. It is entirely possible for code to be opinionated,
> arrogant, foolish, and all those other adjectives that we normally
> appropriate to people.

Steve was clearly referring to the coder, not the code. Please stop
defending the use of incivility on this list.



More information about the Python-list mailing list