[New-bugs-announce] [issue15146] Implemented PyType_FromSpecWithBases

Robin Schreiber 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
files: PyType_FromSpecWithBases.patch
keywords: patch
messages: 163502
nosy: Robin.Schreiber
priority: normal
severity: normal
status: open
title: Implemented PyType_FromSpecWithBases
type: enhancement
versions: Python 3.3
Added file: http://bugs.python.org/file26099/PyType_FromSpecWithBases.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15146>
_______________________________________


More information about the New-bugs-announce mailing list