Commit 9af0b101 authored by Hanno Schlichting's avatar Hanno Schlichting

Expand the ``tp_name`` of our extension types to hold the fully qualified...

Expand the ``tp_name`` of our extension types to hold the fully qualified name. This ensures classes have their ``__module__`` set correctly.
parent 541bc870
...@@ -4,6 +4,8 @@ Changelog ...@@ -4,6 +4,8 @@ Changelog
2.13.1 (unreleased) 2.13.1 (unreleased)
------------------- -------------------
- Expand the ``tp_name`` of our extension types to hold the fully qualified
name. This ensures classes have their ``__module__`` set correctly.
2.13.0 (2010-02-14) 2.13.0 (2010-02-14)
------------------- -------------------
......
...@@ -1311,7 +1311,7 @@ static struct PyMethodDef Wrapper_methods[] = { ...@@ -1311,7 +1311,7 @@ static struct PyMethodDef Wrapper_methods[] = {
static PyExtensionClass Wrappertype = { static PyExtensionClass Wrappertype = {
PyObject_HEAD_INIT(NULL) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"ImplicitAcquirerWrapper", /*tp_name*/ "Acquisition.ImplicitAcquirerWrapper", /*tp_name*/
sizeof(Wrapper), /*tp_basicsize*/ sizeof(Wrapper), /*tp_basicsize*/
0, /*tp_itemsize*/ 0, /*tp_itemsize*/
/* methods */ /* methods */
...@@ -1358,7 +1358,7 @@ static PyExtensionClass Wrappertype = { ...@@ -1358,7 +1358,7 @@ static PyExtensionClass Wrappertype = {
static PyExtensionClass XaqWrappertype = { static PyExtensionClass XaqWrappertype = {
PyObject_HEAD_INIT(NULL) PyObject_HEAD_INIT(NULL)
0, /*ob_size*/ 0, /*ob_size*/
"ExplicitAcquirerWrapper", /*tp_name*/ "Acquisition.ExplicitAcquirerWrapper", /*tp_name*/
sizeof(Wrapper), /*tp_basicsize*/ sizeof(Wrapper), /*tp_basicsize*/
0, /*tp_itemsize*/ 0, /*tp_itemsize*/
/* methods */ /* methods */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment