Too much code - slicing

Andreas Waldenburger usenot at geekmail.INVALID
Fri Sep 17 16:01:54 EDT 2010


On Thu, 16 Sep 2010 16:20:33 -0400 AK <andrei.avk at gmail.com> wrote:

> I also like this construct that works, I think, since 2.6:
> 
> code = dir[int(num):] if side == 'l' else dir[:-1*int(num)]
> 
I wonder when this construct will finally start to look good.

/W


-- 
INVALID? DE!




More information about the Python-list mailing list