for -- else: what was the motivation?

Axy axy at declassed.art
Mon Oct 10 07:36:21 EDT 2022


On 10/10/2022 12:24, Chris Angelico wrote:
> On Mon, 10 Oct 2022 at 21:57, Axy via Python-list
> <python-list at python.org> wrote:
>>
>>> Not sure what you mean, but a for-else without a break is quite
>>> useless. What exactly ARE you arguing here?
>>>
>>> The else is associated with the break to the exact extent that one is
>>> essential to the other's value.
>> I'm not arguing. That was just for the record, how things are done in
>> Python. Basically, I simply asked a question and got a definite answer
>> and clear understanding shortly, in a few replies. All the rest of this
>> thread looks irrelevant to me, it's about coding style and probably
>> should be continued under a different title, but I'm not interested to
>> participate in it.
> Here's where the "rest of this thread" started:
>
>> Actually the reason I never used "else" was the violation of the rule of
>> beauty "shortest block first".
> You disparaged a feature on the basis of a style rule that few of us
> had heard of or agree with.
Oh, I'm really sorry. My apologies.
>   We all agree that coding style is
> important; none of us would see block length as a reason to avoid
> using an else clause on a for loop.

As I understand from the above there must be a committee that delegates 
a speaker? Where to read rules? How to participate? There's something 
beyond this list I'm not aware of yet?

Axy.


More information about the Python-list mailing list