]> granicus.if.org Git - python/commit
don't use a slot wrapper from a different special method (closes #14658)
authorBenjamin Peterson <benjamin@python.org>
Tue, 24 Apr 2012 15:06:25 +0000 (11:06 -0400)
committerBenjamin Peterson <benjamin@python.org>
Tue, 24 Apr 2012 15:06:25 +0000 (11:06 -0400)
commitd157a4c3dd49728b95fe63b2ff931da5bec5fe75
tree31c2f6c085d7eba1eda2b52a20c0f5e9fc06b02c
parente65753e09e9b8a383b68b71f7e39d597b0c61b68
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.
Lib/test/test_descr.py
Misc/NEWS
Objects/typeobject.c