[Python-checkins] CVS: python/dist/src/Mac/Modules/carbonevt _CarbonEvt.c,1.1,1.2
Guido van Rossum
gvanrossum@users.sourceforge.net
Sat, 08 Dec 2001 10:03:24 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/Mac/Modules Nav.c,1.15,1.16 calldll.c,1.6,1.7 ctbmodule.c,1.11,1.12 hfsplusmodule.c,1.4,1.5 icgluemodule.c,1.6,1.7 macfsmodule.c,1.49,1.50 macmodule.c,1.49,1.50 macosmodule.c,1.57,1.58 macspeechmodule.c,1.12,1.13
- Next message: [Python-checkins] CVS: python/dist/src/Mac/Modules/cf _CFmodule.c,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Mac/Modules/carbonevt
In directory usw-pr-cvs1:/tmp/cvs-serv14386/Mac/Modules/carbonevt
Modified Files:
_CarbonEvt.c
Log Message:
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.
Index: _CarbonEvt.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/carbonevt/_CarbonEvt.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** _CarbonEvt.c 2001/11/05 16:21:40 1.1
--- _CarbonEvt.c 2001/12/08 18:02:52 1.2
***************
*** 357,361 ****
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "EventRef", /*tp_name*/
sizeof(EventRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
--- 357,361 ----
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "CarbonEvents.EventRef", /*tp_name*/
sizeof(EventRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
***************
*** 540,544 ****
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "EventQueueRef", /*tp_name*/
sizeof(EventQueueRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
--- 540,544 ----
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "CarbonEvents.EventQueueRef", /*tp_name*/
sizeof(EventQueueRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
***************
*** 632,636 ****
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "EventLoopRef", /*tp_name*/
sizeof(EventLoopRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
--- 632,636 ----
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "CarbonEvents.EventLoopRef", /*tp_name*/
sizeof(EventLoopRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
***************
*** 742,746 ****
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "EventLoopTimerRef", /*tp_name*/
sizeof(EventLoopTimerRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
--- 742,746 ----
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "CarbonEvents.EventLoopTimerRef", /*tp_name*/
sizeof(EventLoopTimerRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
***************
*** 876,880 ****
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "EventHandlerRef", /*tp_name*/
sizeof(EventHandlerRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
--- 876,880 ----
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "CarbonEvents.EventHandlerRef", /*tp_name*/
sizeof(EventHandlerRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
***************
*** 971,975 ****
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "EventHandlerCallRef", /*tp_name*/
sizeof(EventHandlerCallRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
--- 971,975 ----
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "CarbonEvents.EventHandlerCallRef", /*tp_name*/
sizeof(EventHandlerCallRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
***************
*** 1086,1090 ****
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "EventTargetRef", /*tp_name*/
sizeof(EventTargetRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
--- 1086,1090 ----
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "CarbonEvents.EventTargetRef", /*tp_name*/
sizeof(EventTargetRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
***************
*** 1163,1167 ****
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "EventHotKeyRef", /*tp_name*/
sizeof(EventHotKeyRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
--- 1163,1167 ----
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
! "CarbonEvents.EventHotKeyRef", /*tp_name*/
sizeof(EventHotKeyRefObject), /*tp_basicsize*/
0, /*tp_itemsize*/
- Previous message: [Python-checkins] CVS: python/dist/src/Mac/Modules Nav.c,1.15,1.16 calldll.c,1.6,1.7 ctbmodule.c,1.11,1.12 hfsplusmodule.c,1.4,1.5 icgluemodule.c,1.6,1.7 macfsmodule.c,1.49,1.50 macmodule.c,1.49,1.50 macosmodule.c,1.57,1.58 macspeechmodule.c,1.12,1.13
- Next message: [Python-checkins] CVS: python/dist/src/Mac/Modules/cf _CFmodule.c,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]