ivoras at __-geri.cc.fer.hr
Thu Sep 16 00:10:09 CEST 2004
I need to transform this:
(a left-rotation. Actually, any rotation will do).
a = a[1:] + a
which doesn't work because there's no __add__ between a list and
a = a[1:].append(a)
but it doesn't work, since append returns None :( Right now, I'm doing
it with a temporary variable and it looks ugly - is there an elegant way
of doing it?
More information about the Python-list