Bulding python module using C
Andrew Degtiariov
ad at astral-on.net
Fri Sep 24 10:07:12 EDT 2004
On Fri, Sep 24, 2004 at 03:01:08PM +0100, Michael Hoffman wrote:
> >Traceback (most recent call last):
> > File "test.py", line 6, in ?
> > n.first = 'test'
> >TypeError: can't set attributes of built-in/extension type 'noddy3.Noddy'
> >
> >Where was i wrong?
>
> You are trying to set an attribute on the type instead of an *instance*
> of the type.
>
> >n = noddy3.Noddy
>
> n = noddy3.Noddy()
Yes, you right. It is stupid for my self, sorry :-(
--
Andrew Degtiariov
DA-RIPE
More information about the Python-list
mailing list