> Date: Fri, 29 Dec 2017 11:25:14 +0200
> From: Serhiy Storchaka <storch...@gmail.com>
> To: python-dev@python.org
> Subject: Re: [Python-Dev] Heap allocate type structs in native
>         extension modules?
[ munch ]
> Yes, you can create heap types by using PyType_FromSpecWithBases().
>
> But be aware of caveats (https://bugs.python.org/issue26979).

Thanks! I'll give it a go. I've already run into and solved the tp_new
issue, so that won't be a problem.

-- 

        cheers,
        Hugh Fisher
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to