Simple questions on use of objects (probably faq)

Brian Elmegaard brian at
Wed Mar 8 13:25:03 CET 2006

"Matt Hammond" <matt.hammond at> 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)

More information about the Python-list mailing list