New submission from Robin Schreiber <robin.schrei...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15146>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to