]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Recursive compare machinery: The code that intended to exempt tuples
authorTim Peters <tim.peters@gmail.com>
Mon, 20 Jan 2003 16:54:59 +0000 (16:54 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 20 Jan 2003 16:54:59 +0000 (16:54 +0000)
commit4440f22e987f2ccfb798eb8df349884082cccb64
treea2dece7290ef6d87562a80a8e5a6259757419b85
parent0780e470dcba9d9b7307cbce7dcddd6053efaf53
Recursive compare machinery:  The code that intended to exempt tuples
was broken because new-in-2.3 code added a tp_as_mapping slot to tuples.
Repaired that.

Added basic docs to check_recursion().

The code that intended to exempt tuples and strings was also broken here,
and in 2.2:  these should use PyXYZ_CheckExact(), not PyXYZ_Check() -- we
can't know whether subclass instances are immutable.  This part (and this
part alone) is a bugfix candidate.
Objects/object.c