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


Groups > comp.lang.python > #40391

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

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.053
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'looked': 0.10; '(the': 0.15; 'exactly?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.17; 'sort': 0.21; 'trying': 0.21; 'example': 0.23; "haven't": 0.23; 'header:In-Reply-To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'subject:list': 0.28; 'vector': 0.29; 'class': 0.29; 'implement': 0.32; 'johnson': 0.32; 'print': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'method': 0.36; "i'll": 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'subject:this': 0.84; '2013': 0.84; 'rick': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=sMbVEk1H0IvJvmNajKiJyre5bHz/e0gGJae9zP6wNzQ=; b=HbZi+D4/OY/e3Joe4ZLqzUCNJnwDzZB53LBOMXnypdN3HWcPFNeF8polH7QLhL6Mn+ ROrM+CpwmIes/sI+t2XFo/UEK2C4F2aUATTBIha4OoFHoCSuCNFgvmbaDpCHobK3batc wmhaS042+3VnOg0V/emllx2lSkVy/49fIiL8YbMQbP/aNN7BI60Gpj8HZjWdH7kcwNwy t39gzQoR7JYU9EQw2e+b58wmTEb6lzdym59e77eMTndvhvGmGzBa1178xL7sVnilDBKG 7rOy2JMFNnxkt9MIB9sNNZCfj0f7balQdvPhDK9ccApj8cQfRpOYMvbK5L3pWGcQNNOn JjCg==
MIME-Version 1.0
X-Received by 10.68.203.33 with SMTP id kn1mr21544387pbc.197.1362280739584; Sat, 02 Mar 2013 19:18:59 -0800 (PST)
In-Reply-To <kguckk$sf4$1@tdi.cu.mi.it>
References <kgtbb9$3ps$1@tdi.cu.mi.it> <1409c13b-60a6-4e87-a58c-52d5740e74d5@googlegroups.com> <kguckk$sf4$1@tdi.cu.mi.it>
Date Sun, 3 Mar 2013 14:18:59 +1100
Subject Re: Is it correct this way to inherit from a list?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2810.1362280748.2939.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1362280748 news.xs4all.nl 6905 [2001:888:2000:d::a6]:40142
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:40391

Show key headers only | View raw


On Sun, Mar 3, 2013 at 1:30 PM, gialloporpora <gialloporpora@gmail.com> 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.

Have you looked at NumPy? I haven't used it myself, but I understand
it's good for this sort of thing.

ChrisA

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