Too much code - slicing

MRAB python at mrabarnett.plus.com
Sun Sep 19 23:46:38 CEST 2010


On 19/09/2010 22:32, Seebs wrote:
> On 2010-09-19, AK<andrei.avk at gmail.com>  wrote:
>> Because that's what 'if' and 'else' mean.
>
> My point is, I don't want the order of the clauses in if/else to change.
> If it is sometimes "if<condition>  <true-clause>  else<false-clause>", then
> it should *ALWAYS WITHOUT EXCEPTION* be condition first, then true clause,
> then false clause.  If it's sometimes "if condition true-clause else
> false-clause", and sometimes "true-clause if condition else false-clause",
> that's a source of extra complexity.
>
[snip]
Have you read PEP 308? There was a lot of discussion about it.



More information about the Python-list mailing list