diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-04-24 15:06:25 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-04-24 15:06:25 (GMT) |
commit | 7b1668735ace947474bb94f812c03b39bd963a77 (patch) | |
tree | 1b5858e50db5decab64c00ccd4300d412172eea1 /Misc | |
parent | 790e005669912adcbe81073284c982a5b844d2d3 (diff) | |
download | cpython-7b1668735ace947474bb94f812c03b39bd963a77.zip cpython-7b1668735ace947474bb94f812c03b39bd963a77.tar.gz cpython-7b1668735ace947474bb94f812c03b39bd963a77.tar.bz2 |
don't use a slot wrapper from a different special method (closes #14658)
This also alters the fix to #11603. Specifically, setting __repr__ to
object.__str__ now raises a recursion RuntimeError when str() or repr() is
called instead of silently bypassing the recursion. I believe this behavior is
more correct.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -10,6 +10,12 @@ What's New in Python 3.2.4 Core and Builtins ----------------- +- Issue #11603 (again): Setting __repr__ to __str__ now raises a RuntimeError + when repr() or str() is called on such an object. + +- Issue #14658: Fix binding a special method to a builtin implementation of a + special method with a different name. + - Issue #14630: Fix a memory access bug for instances of a subclass of int with value 0. |