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/2002-January/019594.html below:

[Python-Dev] Extending types in C

[Python-Dev] Extending types in C - help needed [Python-Dev] Extending types in C - help neededThomas Heller thomas.heller@ion-tof.com
Fri, 18 Jan 2002 20:01:16 +0100
> > Currently (after quite some time) I have the impression that you
> > cannot create a subtype of PyType_Type in C because PyType_Type
> > ends in a variable sized array, at least not in this way:
> > 
> > struct {
> >     PyTypeObject type;
> >     ...additional fields...
> > } WrapperType_Type;
> > 
> > Can someone confirm this?
> 
> Yes, alas.  The type you would have to declare is 'etype', a private
> type in typeobject.c.

Does this mean this is the wrong route, or is it absolute impossible
to create a subtype of PyType_Type in C with additional slots?

Any tips about the route to take?

Thanks,

Thomas





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