Commit 39c4ef3e authored by Hanno Schlichting's avatar Hanno Schlichting

Fix the ``tp_name`` of the ImplicitAcquisitionWrapper and...

Fix the ``tp_name`` of the ImplicitAcquisitionWrapper and ExplicitAcquisitionWrapper to match their Python visible names and thus have a correct ``__name__``.
parent 9af0b101
...@@ -4,6 +4,10 @@ Changelog ...@@ -4,6 +4,10 @@ Changelog
2.13.1 (unreleased) 2.13.1 (unreleased)
------------------- -------------------
- Fix the ``tp_name`` of the ImplicitAcquisitionWrapper and
ExplicitAcquisitionWrapper to match their Python visible names and thus have
a correct ``__name__``.
- 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. name. This ensures classes have their ``__module__`` set correctly.
......
...@@ -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*/
"Acquisition.ImplicitAcquirerWrapper", /*tp_name*/ "Acquisition.ImplicitAcquisitionWrapper", /*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*/
"Acquisition.ExplicitAcquirerWrapper", /*tp_name*/ "Acquisition.ExplicitAcquisitionWrapper", /*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