Inherit from array
Philippe Martin
pmartin at snakecard.com
Wed Apr 26 09:52:56 EDT 2006
I think he did
from array import *
Philippe
bruno at modulix wrote:
> TG wrote:
>> Hi there.
>>
>> I'm trying to create a simple class called Vector which inherit from
>> array.
>
> Which array ?
>
> bruno at bousin ~ $ python
> Python 2.4.2 (#1, Feb 9 2006, 02:40:32)
> [GCC 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> array
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> NameError: name 'array' is not defined
>
>
> --
> bruno desthuilliers
> python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
> p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list