Simple questions on use of objects (probably faq)

Brian Elmegaard brian at rkspeed-rugby.dk
Wed Mar 8 07:25:03 EST 2006


"Matt Hammond" <matt.hammond at rd.bbc.co.uk> writes:

> Hmmm, rereading, I think you're right ... and I think I'm confused too :-)

You both are.

> Attempt #2:
>
>      yz = [ (y1.x - y2.x) for (y1,y2) in zip(y[:-1], y[1:]) ]
>
> Frankly, a for loop with an index would probably be easier to read :)

Me too, would that be what I already had?

-- 
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
http://www.rugbyklubben-speed.dk



More information about the Python-list mailing list