New user's initial thoughts / criticisms of Python

Chris Angelico rosuav at gmail.com
Sat Nov 9 19:54:52 EST 2013


On Sun, Nov 10, 2013 at 11:50 AM, MRAB <python at mrabarnett.plus.com> wrote:
> On 09/11/2013 22:44, Jonathan wrote:
>> In pythonic syntax:
>>
>> select <expression0>:
>>    case <case expression>,[<case expression>],:
>>    ....
>>    ....
>>    case else:
>>
> [snip]
>
> It's more likely that the cases would be indented the same amount as
> the 'select', and you wouldn't need 'case else', just 'else'.

To fully bike-shed something that's not even a proposal, much less one
that's likely to happen: I would agree with Jonathan, the 'select'
block ends with a colon and gets indented.

ChrisA



More information about the Python-list mailing list