[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


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*/