cpython/Objects
Guido van Rossum 4eadfa2b2e Fix from Greg Chapman from SF bug #695651: a complex subclass
constructor, when passed a single complex argument, returns the
argument unchanged.  This should be done only for the complex base
class; a complex subclass should of course cast the value to the
subclass in this case.

The fix also revealed a segfault in complex_getnewargs(): the argument
for the Py_BuildValue() format code "D" is the *address* of a
Py_complex struct, not the value.  (This corroborated by the API
documentation.)

I expect this needs to be backported to 2.2.3.
2003-03-02 13:51:47 +00:00
..
.cvsignore
abstract.c Removed duplicate test from inner loop. 2003-03-01 01:44:32 +00:00
boolobject.c Make more functions static 2002-08-06 22:12:52 +00:00
bufferobject.c Call me anal, but there was a particular phrase that was speading to 2002-08-19 19:26:42 +00:00
cellobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
classobject.c Refactor instancemethod_descr_get() to (a) be more clear, (b) be safe 2003-02-11 18:43:00 +00:00
cobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
complexobject.c Fix from Greg Chapman from SF bug #695651: a complex subclass 2003-03-02 13:51:47 +00:00
descrobject.c Put proper tests in classmethod_get(). Remove the type argument to 2003-02-11 18:44:42 +00:00
dictobject.c Add closing ) in comment 2003-02-15 14:45:12 +00:00
enumobject.c Remove the next() method -- one is supplied automatically by 2002-07-16 21:02:42 +00:00
fileobject.c SF patch #683187, fix universal newline problems on error 2003-02-09 01:10:02 +00:00
floatobject.c Implement appropriate __getnewargs__ for all immutable subclassable builtin 2003-01-29 17:58:45 +00:00
frameobject.c Refactor the logic for setting f_builtins. 2003-02-05 22:39:29 +00:00
funcobject.c Make __module__ writable except in restricted mode (like for classic classes). 2003-02-18 17:18:35 +00:00
intobject.c Strange control flow in PyInt_AsLong. When nb_int is called inside 2003-02-20 20:32:11 +00:00
iterobject.c Squash a few calls to the hideously expensive PyObject_CallObject(o,a) 2002-08-16 17:01:09 +00:00
listobject.c Allow list sort's comparison function to explicitly be None. See SF patch 2003-01-02 20:51:08 +00:00
listsort.txt Fixed new typos, added a little info about ~sort versus "hint"s. 2002-08-10 07:04:01 +00:00
longobject.c Fix SF bug #689659, 64-bit int and long hash keys incompatible 2003-02-23 23:11:41 +00:00
methodobject.c Make __module__ writable except in restricted mode (like for classic classes). 2003-02-18 17:18:35 +00:00
moduleobject.c Patch #568124: Add doc string macros. 2002-06-13 20:33:02 +00:00
object.c PyObject_Generic{Get,Set}Attr: 2003-02-19 03:19:29 +00:00
obmalloc.c Remove MALLOC_ZERO_RETURNS_NULL. 2002-11-23 09:13:40 +00:00
rangeobject.c Update comments about the performance of xrange(). 2002-12-11 07:14:03 +00:00
sliceobject.c SF patch #659536: Use PyArg_UnpackTuple where possible. 2002-12-29 16:33:45 +00:00
stringobject.c Implement appropriate __getnewargs__ for all immutable subclassable builtin 2003-01-29 17:58:45 +00:00
structseq.c Removed all uses of the out-of-favor __safe_for_unpickling__ magic 2003-02-01 02:16:37 +00:00
tupleobject.c Implement appropriate __getnewargs__ for all immutable subclassable builtin 2003-01-29 17:58:45 +00:00
typeobject.c Implementing the salient parts of __reduce_ex__ in C. 2003-02-21 22:02:54 +00:00
unicodectype.c Make lower/upper/title work for non-BMP characters. 2002-10-18 16:40:36 +00:00
unicodeobject.c Add more missing PyErr_NoMemory() after failled memory allocs 2003-02-11 23:05:40 +00:00
unicodetype_db.h Add unidata_version. Bump generator version number. 2002-11-25 09:13:37 +00:00
weakrefobject.c Add support for the iterator protocol to weakref proxy objects. 2002-08-09 18:34:16 +00:00
xxobject.c Grammatical fix in comment. 2003-01-03 21:22:08 +00:00