[issue13103] copy of an asyncore dispatcher causes infinite recursion

Amaury Forgeot d'Arc report at bugs.python.org
Wed Oct 5 19:20:55 CEST 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

So, in 3.1 hasattr(y, '__setstate__') *did* recurse and hit the limit, but the exception was caught and hasattr returned False?

I think I prefer the new behavior...
The patch looks good, I would simply have raised AttributeError(name) though.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13103>
_______________________________________


More information about the Python-bugs-list mailing list