Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40385

Re: Is it correct this way to inherit from a list?

From gialloporpora <gialloporpora@gmail.com>
Newsgroups comp.lang.python
Subject Re: Is it correct this way to inherit from a list?
Date 2013-03-03 03:30 +0100
Organization getCurrentAccountKey();
Message-ID <kguckk$sf4$1@tdi.cu.mi.it> (permalink)
References <kgtbb9$3ps$1@tdi.cu.mi.it> <1409c13b-60a6-4e87-a58c-52d5740e74d5@googlegroups.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is it correct this way to inherit from a list? gialloporpora <gialloporpora@gmail.com> - 2013-03-02 18:02 +0100
  Re: Is it correct this way to inherit from a list? Peter Otten <__peter__@web.de> - 2013-03-02 18:19 +0100
  Re: Is it correct this way to inherit from a list? Ian Kelly <ian.g.kelly@gmail.com> - 2013-03-02 10:22 -0700
  Re: Is it correct this way to inherit from a list? Ian Kelly <ian.g.kelly@gmail.com> - 2013-03-02 10:26 -0700
    Re: Is it correct this way to inherit from a list? gialloporpora <gialloporpora@gmail.com> - 2013-03-03 03:33 +0100
  Re: Is it correct this way to inherit from a list? Rick Johnson <rantingrickjohnson@gmail.com> - 2013-03-02 09:46 -0800
    Re: Is it correct this way to inherit from a list? gialloporpora <gialloporpora@gmail.com> - 2013-03-03 03:30 +0100
      Re: Is it correct this way to inherit from a list? Chris Angelico <rosuav@gmail.com> - 2013-03-03 14:18 +1100
      Re: Is it correct this way to inherit from a list? "Colin J. Williams" <cjw@ncf.ca> - 2013-03-03 09:21 -0500
        Re: Is it correct this way to inherit from a list? Jason Swails <jason.swails@gmail.com> - 2013-03-03 15:40 -0500

csiph-web