[New-bugs-announce] [issue15146] Implemented PyType_FromSpecWithBases
report at bugs.python.org
Sat Jun 23 00:34:41 CEST 2012
New submission from Robin Schreiber <robin.schreiber at me.com>:
Enhancement to the currently existing PyType_FromSpec() which creates and returns a heap type from a given spec. PyType_FromSpecWithBases() works similar to PyType_FromSpec(), however it sets the bases of the newly created heap type to the types contained inside the passed bases-tuple.
This allows the programmer to reference other heap-types as base types of a new heap type. This is necessary as the slot-API, which is used for static declarations of the type-spec, currently relies on statically declared type objects as tp_base or tp_bases entries.
components: Interpreter Core
title: Implemented PyType_FromSpecWithBases
versions: Python 3.3
Added file: http://bugs.python.org/file26099/PyType_FromSpecWithBases.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce