degrees and radians.

Fernando Pérez fperez528 at yahoo.com
Sun May 5 15:51:42 EDT 2002


Jim Richardson wrote:

> sorry, I wasn't very clear, in the above example, the result I am
> looking for is
> 
>>>>a=(1,2)
>>>>b=(2,3)
>>>>a+b
> (3,5)
> 
> 
> if that makes sense, I don't want to append, I want to add.
> 

Use Numeric for that (unless you want to write your own code, of course). Its 
arrays work in this way, which is different to that of python's normal 
sequence types.

cheers,

f.



More information about the Python-list mailing list