Message163502
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. |
|
Date |
User |
Action |
Args |
2012-06-22 22:34:41 | Robin.Schreiber | set | recipients:
+ Robin.Schreiber |
2012-06-22 22:34:41 | Robin.Schreiber | set | messageid: <1340404481.13.0.60159663995.issue15146@psf.upfronthosting.co.za> |
2012-06-22 22:34:40 | Robin.Schreiber | link | issue15146 messages |
2012-06-22 22:34:40 | Robin.Schreiber | create | |
|