cpython/Objects
Guido van Rossum c35422109b Fix SF bug #442501: calculate __module__ properly.
- type_module(), type_name(): if tp_name contains one or more period,
  the part before the last period is __module__, the part after that
  is __name__.  Otherwise, for non-heap types, __module__ is
  "__builtin__".  For heap types, __module__ is looked up in
  tp_defined.

- type_new(): heap types have their __module__ set from
  globals().__name__; a pre-existing __module__ in their dict is not
  overridden.  This is not inherited.

- type_repr(): if __module__ exists and is not "__builtin__", it is
  included in the string representation (just as it already is for
  classes).  For example <type '__main__.C'>.
2001-08-16 09:18:56 +00:00
..
.cvsignore
abstract.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
bufferobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
cellobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
classobject.c PyMethod_Type: add a tp_descr_get slot function to ensure proper 2001-08-15 17:52:31 +00:00
cobject.c
complexobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
descrobject.c Subtle change to make None.__class__ work: 2001-08-16 08:27:33 +00:00
dictobject.c Add PyDict_Merge(a, b, override): 2001-08-10 20:28:28 +00:00
fileobject.c Apply anonymous SF patch #441229. 2001-08-09 18:14:59 +00:00
floatobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
frameobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
funcobject.c func_getattro(), func_setattro(): Implement the new semantics for 2001-08-14 18:23:58 +00:00
intobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
iterobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
listobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
longobject.c Implement PEP 238 in its (almost) full glory. 2001-08-08 05:00:18 +00:00
methodobject.c Remove much dead code from ceval.c 2001-08-12 21:52:24 +00:00
moduleobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
object.c Add a function _Py_ReadyTypes() which initializes various and sundry 2001-08-16 08:17:26 +00:00
obmalloc.c Identifiers matching _[A-Z_]\w* are reserved for C implementations. 2001-03-11 18:36:13 +00:00
rangeobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
sliceobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
stringobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
tupleobject.c Merge of descr-branch back into trunk. 2001-08-02 04:15:00 +00:00
typeobject.c Fix SF bug #442501: calculate __module__ properly. 2001-08-16 09:18:56 +00:00
unicodectype.c removed "register const" from scalar arguments to the unicode 2001-06-27 22:08:26 +00:00
unicodeobject.c SF patch #438013 Remove 2-byte Py_UCS2 assumptions 2001-08-09 22:21:55 +00:00
unicodetype_db.h forgot to check in the new makeunicodedata.py script 2001-01-21 17:01:31 +00:00
xxobject.c