[Python-Dev] Heap allocated type objects from C

"Martin v. Löwis" martin at v.loewis.de
Sat Jun 26 06:52:32 EDT 2004

Eric Huss wrote:
> First, could someone tell me if I took the correct route for creating a
> type object on the heap (based on my patch).
> Second, shouldn't there be a more direct API for doing this?  Perhaps a
> more generalized interface to type_new(), or maybe something completely
> new??

I don't understand why the patch needs to be so complicated. Why can't
you just make a global function that returns new type objects which
are struct seqs? IOW, why do you need the factory type? Type objects
are callable themselves, so they act as factories.


More information about the Python-Dev mailing list