In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] wrote:

> Thank you but your advice doesn't fit in my case since I want to keep
> the memory usage and the initial time minimum. iterable[::-1] would
> build another list and it would take big memory and time during
> reversing if iterable were huge. (and the "iterable" wouldn't be
> garbage-collected because I want to keep a reference to it)

If your list contains numbers (or lists of numbers), consider using 
NumPy (Numeric) or Numarray, in which seq[::-1] will actually return a 
"view", and not a copy.

Just
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to