Nick Coghlan wrote:

> > would collapse to
> >
> >     static PyTypeObject NoddyType;
>
> Wouldn't that have to be a pointer to allow the Python runtime complete
> control of the structure size without recompiling the extension?:
>
>      static PyTypeObject *NoddyType;

yeah, that's a silly typo.  or maybe I was thinking of something really clever 
that
I can no longer remember.

>      NoddyType = PyType_Alloc("noddy.Noddy");
>      if (!NoddyType)
>          return;

the fewer places you have to check for an error, the less chance you have to
forget to do it.  my proposal implied that the NULL check should be done in
Ready.

I've posted slightly cleaned up version of my rough proposal here:

    http://effbot.org/zone/idea-register-type.htm

</F> 



_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to