A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-October/069396.html below:

[Python-Dev] 2.4.4: backport classobject.c HAVE_WEAKREFS?

[Python-Dev] 2.4.4: backport classobject.c HAVE_WEAKREFS? [Python-Dev] 2.4.4: backport classobject.c HAVE_WEAKREFS?Fredrik Lundh fredrik at pythonware.com
Fri Oct 13 11:22:09 CEST 2006
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> 



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4