cpython/Objects
Armin Rigo 89a39461bf Wrote down the invariants of some common objects whose structure is
exposed in header files.  Fixed a few comments in these headers.

As we might have expected, writing down invariants systematically exposed a
(minor) bug.  In this case, function objects have a writeable func_code
attribute, which could be set to code objects with the wrong number of
free variables.  Calling the resulting function segfaulted the interpreter.
Added a corresponding test.
2004-10-28 16:32:00 +00:00
..
.cvsignore
abstract.c SF bug #1030557: PyMapping_Check crashes when argument is NULL 2004-09-19 06:00:15 +00:00
boolobject.c - bool() called without arguments now returns False rather than 2003-04-19 18:15:10 +00:00
bufferobject.c Ensure negative offsets cannot be passed to buffer(). When composing 2004-09-24 19:17:26 +00:00
cellobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
classobject.c A static swapped_op[] array was defined in 3 different C files, & I think 2004-09-23 02:39:37 +00:00
cobject.c Make CObjects mutable. Fixes #477441. 2003-10-19 18:30:01 +00:00
complexobject.c Fix repr for negative imaginary part. Fixes #1013908. 2004-08-22 21:09:15 +00:00
descrobject.c Use PyDict_Contains() instead of PySequence_Contains(). 2003-12-13 11:58:56 +00:00
dictnotes.txt Fix typos and add some elaborations 2004-03-15 15:52:22 +00:00
dictobject.c Moved SunPro warning suppression into pyport.h and out of individual 2004-07-15 15:54:05 +00:00
enumobject.c SF patch #1020188: Use Py_CLEAR where necessary to avoid crashes 2004-09-01 07:02:44 +00:00
fileobject.c dump HAVE_FOPENRF stuff - obsolete 2004-06-11 04:49:03 +00:00
floatobject.c float_richcompare(): Use the new Py_IS_NAN macro to ensure that, on 2004-09-23 19:22:41 +00:00
frameobject.c SF Bug #215126: Over restricted type checking on eval() function 2004-07-02 06:41:07 +00:00
funcobject.c Wrote down the invariants of some common objects whose structure is 2004-10-28 16:32:00 +00:00
genobject.c SF patch #1020188: Use Py_CLEAR where necessary to avoid crashes 2004-09-01 07:02:44 +00:00
intobject.c Stop producing or using OverflowWarning. PEP 237 thought this would 2004-08-25 02:14:08 +00:00
iterobject.c SF patch #1020188: Use Py_CLEAR where necessary to avoid crashes 2004-09-01 07:02:44 +00:00
listobject.c Finalize the freelist of list objects. 2004-10-07 03:58:07 +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 Patch #1024670: Support int objects in PyLong_AsUnsignedLong[Mask]. 2004-09-20 06:17:46 +00:00
methodobject.c * Added a new method flag, METH_COEXIST. 2003-12-13 11:26:12 +00:00
moduleobject.c Make the word "module" appear in the error string for calling the 2004-09-14 17:19:09 +00:00
object.c Remove 'extern' declaration for _Py_SwappedOp. 2004-09-25 01:37:24 +00:00
obmalloc.c whoops, I wanted that commented out by default, will add doc to Misc 2004-06-06 19:21:34 +00:00
rangeobject.c Bug 1003935: xrange overflows 2004-08-08 07:17:39 +00:00
setobject.c Use Py_CLEAR(). Add unrelated test. 2004-09-28 01:51:35 +00:00
sliceobject.c SF bug #800796: Difference between hash() and __hash__() 2003-09-05 14:27:30 +00:00
stringobject.c SF bug #1054139: serious string hashing error in 2.4b1 2004-10-26 01:52:37 +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 Add a final permutation step to the tuple hash function. 2004-06-10 18:42:15 +00:00
typeobject.c A static swapped_op[] array was defined in 3 different C files, & I think 2004-09-23 02:39:37 +00:00
unicodectype.c SF #989185: Drop unicode.iswide() and unicode.width() and add 2004-08-04 07:38:35 +00:00
unicodeobject.c Applied patch for [ 1047269 ] Buffer overwrite in PyUnicode_AsWideChar. 2004-10-15 07:45:05 +00:00
unicodetype_db.h SF #989185: Drop unicode.iswide() and unicode.width() and add 2004-08-04 07:38:35 +00:00
weakrefobject.c Be more careful about maintaining the invariants; it was actually 2004-08-03 14:47:25 +00:00