summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/carbonevt
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-12-08 18:02:58 (GMT)
committerGuido van Rossum <guido@python.org>2001-12-08 18:02:58 (GMT)
commit146483964e2e94b0d1709be438a1b86f75b5d730 (patch)
tree6635721e35b49fbb5d0197b2d308b99ee7623e94 /Mac/Modules/carbonevt
parent7745218c051706336e4adab4d33863dde2a38d6c (diff)
downloadcpython-146483964e2e94b0d1709be438a1b86f75b5d730.zip
cpython-146483964e2e94b0d1709be438a1b86f75b5d730.tar.gz
cpython-146483964e2e94b0d1709be438a1b86f75b5d730.tar.bz2
Patch supplied by Burton Radons for his own SF bug #487390: Modifying
type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
Diffstat (limited to 'Mac/Modules/carbonevt')
-rw-r--r--Mac/Modules/carbonevt/_CarbonEvt.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Mac/Modules/carbonevt/_CarbonEvt.c b/Mac/Modules/carbonevt/_CarbonEvt.c
index aab735b..731a2fa 100644
--- a/Mac/Modules/carbonevt/_CarbonEvt.c
+++ b/Mac/Modules/carbonevt/_CarbonEvt.c
@@ -356,7 +356,7 @@ static PyObject *EventRef_getattr(EventRefObject *self, char *name)
PyTypeObject EventRef_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "EventRef", /*tp_name*/
+ "CarbonEvents.EventRef", /*tp_name*/
sizeof(EventRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -539,7 +539,7 @@ static PyObject *EventQueueRef_getattr(EventQueueRefObject *self, char *name)
PyTypeObject EventQueueRef_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "EventQueueRef", /*tp_name*/
+ "CarbonEvents.EventQueueRef", /*tp_name*/
sizeof(EventQueueRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -631,7 +631,7 @@ static PyObject *EventLoopRef_getattr(EventLoopRefObject *self, char *name)
PyTypeObject EventLoopRef_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "EventLoopRef", /*tp_name*/
+ "CarbonEvents.EventLoopRef", /*tp_name*/
sizeof(EventLoopRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -741,7 +741,7 @@ static PyObject *EventLoopTimerRef_getattr(EventLoopTimerRefObject *self, char *
PyTypeObject EventLoopTimerRef_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "EventLoopTimerRef", /*tp_name*/
+ "CarbonEvents.EventLoopTimerRef", /*tp_name*/
sizeof(EventLoopTimerRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -875,7 +875,7 @@ static PyObject *EventHandlerRef_getattr(EventHandlerRefObject *self, char *name
PyTypeObject EventHandlerRef_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "EventHandlerRef", /*tp_name*/
+ "CarbonEvents.EventHandlerRef", /*tp_name*/
sizeof(EventHandlerRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -970,7 +970,7 @@ static PyObject *EventHandlerCallRef_getattr(EventHandlerCallRefObject *self, ch
PyTypeObject EventHandlerCallRef_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "EventHandlerCallRef", /*tp_name*/
+ "CarbonEvents.EventHandlerCallRef", /*tp_name*/
sizeof(EventHandlerCallRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -1085,7 +1085,7 @@ static PyObject *EventTargetRef_getattr(EventTargetRefObject *self, char *name)
PyTypeObject EventTargetRef_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "EventTargetRef", /*tp_name*/
+ "CarbonEvents.EventTargetRef", /*tp_name*/
sizeof(EventTargetRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@@ -1162,7 +1162,7 @@ static PyObject *EventHotKeyRef_getattr(EventHotKeyRefObject *self, char *name)
PyTypeObject EventHotKeyRef_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
- "EventHotKeyRef", /*tp_name*/
+ "CarbonEvents.EventHotKeyRef", /*tp_name*/
sizeof(EventHotKeyRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */