replacing `else` with `then` in `for` and `try`
Chris Angelico
rosuav at gmail.com
Sun Nov 5 19:39:35 EST 2017
On Mon, Nov 6, 2017 at 11:06 AM, Steve D'Aprano
<steve+python at pearwood.info> wrote:
> On Mon, 6 Nov 2017 10:06 am, Jon Ribbens wrote:
>
>> On 2017-11-05, Ben Finney <ben+python at benfinney.id.au> wrote:
>>> Jon Ribbens <jon+usenet at unequivocal.eu> writes:
>>>> I've provided you with a way of thinking about 'for...else' that makes
>>>> its purpose and meaning intuitively obvious.
>>>
>>> I've read that sentence several times, and I still can't make it
>>> anything but a contradiction in terms.
>>
>> Well, keep at it and I'm sure you'll work it out eventually.
>
>
> Alice laughed. 'There's no use trying,' she said. 'One can't
> believe impossible things.'
>
> 'I daresay you haven't had much practice,' said the Queen.
> 'When I was your age, I always did it for half-an-hour a day.
> Why, sometimes I've believed as many as six impossible things
> before breakfast.'
Yes, that. Although I was more thinking of the word "intuitively":
`When _I_ use a word,' Humpty Dumpty said in rather a scornful
tone, `it means just what I choose it to mean -- neither more nor
less.'
`The question is,' said Alice, `whether you CAN make words mean
so many different things.'
`The question is,' said Humpty Dumpty, `which is to be master -
- that's all.'
ChrisA
More information about the Python-list
mailing list