[Checkins] SVN: Acquisition/trunk/ Fix the ``tp_name`` of the ImplicitAcquisitionWrapper and ExplicitAcquisitionWrapper to match their Python visible names and thus have a correct ``__name__``.
Hanno Schlichting
hannosch at hannosch.eu
Tue Feb 23 17:10:38 EST 2010
Log message for revision 109390:
Fix the ``tp_name`` of the ImplicitAcquisitionWrapper and ExplicitAcquisitionWrapper to match their Python visible names and thus have a correct ``__name__``.
Changed:
U Acquisition/trunk/CHANGES.txt
U Acquisition/trunk/src/Acquisition/_Acquisition.c
-=-
Modified: Acquisition/trunk/CHANGES.txt
===================================================================
--- Acquisition/trunk/CHANGES.txt 2010-02-23 22:00:15 UTC (rev 109389)
+++ Acquisition/trunk/CHANGES.txt 2010-02-23 22:10:37 UTC (rev 109390)
@@ -4,6 +4,10 @@
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
name. This ensures classes have their ``__module__`` set correctly.
Modified: Acquisition/trunk/src/Acquisition/_Acquisition.c
===================================================================
--- Acquisition/trunk/src/Acquisition/_Acquisition.c 2010-02-23 22:00:15 UTC (rev 109389)
+++ Acquisition/trunk/src/Acquisition/_Acquisition.c 2010-02-23 22:10:37 UTC (rev 109390)
@@ -1311,7 +1311,7 @@
static PyExtensionClass Wrappertype = {
PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
- "Acquisition.ImplicitAcquirerWrapper", /*tp_name*/
+ "Acquisition.ImplicitAcquisitionWrapper", /*tp_name*/
sizeof(Wrapper), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -1358,7 +1358,7 @@
static PyExtensionClass XaqWrappertype = {
PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
- "Acquisition.ExplicitAcquirerWrapper", /*tp_name*/
+ "Acquisition.ExplicitAcquisitionWrapper", /*tp_name*/
sizeof(Wrapper), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
More information about the checkins
mailing list