cpython/Objects
Guido van Rossum c3a787e090 Surprising fix for SF bug 563060: module can be used as base class.
Change the module constructor (module_init) to have the signature
__init__(name:str, doc=None); this prevents the call from type_new()
to succeed.  While we're at it, prevent repeated calling of
module_init for the same module from leaking the dict, changing the
semantics so that __dict__ is only initialized if NULL.

Also adding a unittest, test_module.py.

This is an incompatibility with 2.2, if anybody was instantiating the
module class before, their argument list was probably empty; so this
can't be backported to 2.2.x.
2002-06-04 05:52:47 +00:00
..
.cvsignore
abstract.c abstract_get_bases(): Clarify exactly what the return values and 2002-04-23 22:45:44 +00:00
boolobject.c Clean up the layout of the bool_as_number struct initializer. 2002-04-25 20:01:10 +00:00
bufferobject.c Remove the CACHE_HASH and INTERN_STRINGS preprocessor symbols. 2002-03-29 03:29:08 +00:00
cellobject.c
classobject.c
cobject.c
complexobject.c Deprecate % as well. The message for deprecation of //, % and divmod 2002-04-15 12:39:12 +00:00
descrobject.c Fold long lines. (Walter, please take note! :-) 2002-04-13 14:06:36 +00:00
dictobject.c Add Raymond Hettinger's d.pop(). See SF patch 539949. 2002-04-12 15:11:59 +00:00
enumobject.c - New builtin function enumerate(x), from PEP 279. Example: 2002-04-26 19:40:56 +00:00
fileobject.c file_doc: Add some description of the U mode character, but only when 2002-05-22 20:37:53 +00:00
floatobject.c clarify message when raising TypeError to indicate that float() accepts 2002-05-02 13:03:22 +00:00
frameobject.c Fix SF bug #505315: Make free and cell vars show up consistently in locals(). 2002-04-20 04:46:55 +00:00
funcobject.c PyObject_Del can now be used as a function designator. 2002-04-12 02:44:10 +00:00
intobject.c Just added comments, and cleared some XXX questions, related to int 2002-04-28 16:57:34 +00:00
iterobject.c SF 560736. Optimize list iteration by filling the tp_iter slot. 2002-05-31 21:40:38 +00:00
listobject.c A bogus assert in the new listiter code prevented starting Python in a 2002-06-01 05:22:55 +00:00
longobject.c Clarify return value of PyLong_AsLongLong(). 2002-04-23 20:01:20 +00:00
methodobject.c Introduce two new flag bits that can be set in a PyMethodDef method 2002-03-28 05:33:33 +00:00
moduleobject.c Surprising fix for SF bug 563060: module can be used as base class. 2002-06-04 05:52:47 +00:00
object.c Fix typo 2002-05-31 20:23:33 +00:00
obmalloc.c PyObject_Realloc(): If a small block is shrinking, bite the expense of 2002-05-02 20:19:34 +00:00
rangeobject.c Patch #551410: Implement tp_getiter. 2002-05-08 08:49:27 +00:00
sliceobject.c Remove PyMalloc_New and PyMalloc_Del. 2002-04-12 03:05:37 +00:00
stringobject.c Change name from string to basestring 2002-05-31 19:58:02 +00:00
structseq.c Remove PyMalloc_New and PyMalloc_Del. 2002-04-12 03:05:37 +00:00
tupleobject.c PyObject_GC_Del can now be used as a function designator. 2002-04-12 03:05:52 +00:00
typeobject.c Address the residual issue with the fix for SF 551412 in 2002-06-03 19:52:41 +00:00
unicodectype.c
unicodeobject.c Fix a possible segfault. Found be Neal Norvitz. 2002-05-29 13:46:29 +00:00
unicodetype_db.h
weakrefobject.c Remove weakref free list. This has the side effect of fixing a memory 2002-03-27 15:18:21 +00:00
xxobject.c Use function instead of macro spellings for PyObject_memorystuff. 2002-05-23 15:51:20 +00:00