diff options
author | Guido van Rossum <guido@python.org> | 2001-12-08 18:02:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-12-08 18:02:58 (GMT) |
commit | 146483964e2e94b0d1709be438a1b86f75b5d730 (patch) | |
tree | 6635721e35b49fbb5d0197b2d308b99ee7623e94 /Mac/Modules/cf | |
parent | 7745218c051706336e4adab4d33863dde2a38d6c (diff) | |
download | cpython-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/cf')
-rw-r--r-- | Mac/Modules/cf/_CFmodule.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Mac/Modules/cf/_CFmodule.c b/Mac/Modules/cf/_CFmodule.c index fbdabbb..167fdda 100644 --- a/Mac/Modules/cf/_CFmodule.c +++ b/Mac/Modules/cf/_CFmodule.c @@ -336,7 +336,7 @@ static int CFTypeRefObj_hash(CFTypeRefObject *self) PyTypeObject CFTypeRef_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "CFTypeRef", /*tp_name*/ + "_CF.CFTypeRef", /*tp_name*/ sizeof(CFTypeRefObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ @@ -488,7 +488,7 @@ static int CFArrayRefObj_hash(CFArrayRefObject *self) PyTypeObject CFArrayRef_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "CFArrayRef", /*tp_name*/ + "_CF.CFArrayRef", /*tp_name*/ sizeof(CFArrayRefObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ @@ -647,7 +647,7 @@ static int CFMutableArrayRefObj_hash(CFMutableArrayRefObject *self) PyTypeObject CFMutableArrayRef_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "CFMutableArrayRef", /*tp_name*/ + "_CF.CFMutableArrayRef", /*tp_name*/ sizeof(CFMutableArrayRefObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ @@ -781,7 +781,7 @@ static int CFDictionaryRefObj_hash(CFDictionaryRefObject *self) PyTypeObject CFDictionaryRef_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "CFDictionaryRef", /*tp_name*/ + "_CF.CFDictionaryRef", /*tp_name*/ sizeof(CFDictionaryRefObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ @@ -899,7 +899,7 @@ static int CFMutableDictionaryRefObj_hash(CFMutableDictionaryRefObject *self) PyTypeObject CFMutableDictionaryRef_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "CFMutableDictionaryRef", /*tp_name*/ + "_CF.CFMutableDictionaryRef", /*tp_name*/ sizeof(CFMutableDictionaryRefObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ @@ -1051,7 +1051,7 @@ static int CFDataRefObj_hash(CFDataRefObject *self) PyTypeObject CFDataRef_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "CFDataRef", /*tp_name*/ + "_CF.CFDataRef", /*tp_name*/ sizeof(CFDataRefObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ @@ -1257,7 +1257,7 @@ static int CFMutableDataRefObj_hash(CFMutableDataRefObject *self) PyTypeObject CFMutableDataRef_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "CFMutableDataRef", /*tp_name*/ + "_CF.CFMutableDataRef", /*tp_name*/ sizeof(CFMutableDataRefObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ @@ -1890,7 +1890,7 @@ static int CFStringRefObj_hash(CFStringRefObject *self) PyTypeObject CFStringRef_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "CFStringRef", /*tp_name*/ + "_CF.CFStringRef", /*tp_name*/ sizeof(CFStringRefObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ @@ -2197,7 +2197,7 @@ static int CFMutableStringRefObj_hash(CFMutableStringRefObject *self) PyTypeObject CFMutableStringRef_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "CFMutableStringRef", /*tp_name*/ + "_CF.CFMutableStringRef", /*tp_name*/ sizeof(CFMutableStringRefObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ @@ -2601,7 +2601,7 @@ static int CFURLRefObj_hash(CFURLRefObject *self) PyTypeObject CFURLRef_Type = { PyObject_HEAD_INIT(NULL) 0, /*ob_size*/ - "CFURLRef", /*tp_name*/ + "_CF.CFURLRef", /*tp_name*/ sizeof(CFURLRefObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ /* methods */ |