Is it correct this way to inherit from a list?

Colin J. Williams cjw at ncf.ca
Sun Mar 3 09:21:21 EST 2013


On 02/03/2013 9:30 PM, gialloporpora wrote:
> 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
Numpy facilitates this sort of thing more efficiently than using a List.

Colin W.




More information about the Python-list mailing list