On Wed, 08 Mar 2006 11:00:09 +0000, Matt Hammond wrote:

>> 4: Can I avoid the dummy counter i in the for loop and do something
>> like:
>> yz=[y[:-1].x-y[1:].x]
> 
> yz = [e.x for e in y]
> yz.reverse()

I don't think that's what the O.P. actually wants. He seems to have
misused slicing syntax as some sort of weird replacement for a for loop.

Of course, I could be wrong.


-- 
Steven.

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

Reply via email to