basic bytecode to machine code compiler (part 3)

Rouslan Korneychuk rouslank at msn.com
Tue Jun 21 16:06:32 EDT 2011


On 06/21/2011 06:55 AM, Ulrich Eckhardt wrote:
> Rouslan Korneychuk wrote:
>> if i != pindex:
>>      (less if x<= pivot else greater).append(x)
>
> Just curious, is there a reason why you wrote this last line that way
> instead of using a "normal" if/else clause?
>
>
> Cheers!
>
> Uli
>
>

No special reason. I just like concise code.



More information about the Python-list mailing list