Is it correct this way to inherit from a list?

gialloporpora gialloporpora at gmail.com
Sat Mar 2 21:30:46 EST 2013


Risposta al messaggio di Rick Johnson :

> What are you trying to achieve exactly?


I would like to implement a class (vector) to works with vectors, for 
example using scalar multiplication:
a*v = [a*v1, a*vn]
and a dual class for dual vector (the only method that I'll change is 
the __str__ method to print it as colun.
Sandro



-- 
*gialloporpora: Il nuovo album degli Atoms for Peace (con Thom Yorke dei 
radiohead) disponibile live: http://t.co/3VgxNFrZ Un po' troppo 
elettronico per me * - http://bit.ly/ZmDCze
Sto ascoltando: *Pink Floyd – Us and Them * - http://bit.ly/ZmDC2m



More information about the Python-list mailing list