[issue13103] copy of an asyncore dispatcher causes infinite recursion

2014-06-27 Thread STINNER Victor
STINNER Victor added the comment: This issue has been fixed in Python 3.5 by this change: --- changeset: 90495:2cceb8cb552b parent: 90493:d1a03834cec7 user:Giampaolo Rodola' date:Tue Apr 29 02:03:40 2014 +0200 files: Lib/asyncore.py Lib/test/test_asyncore.py Misc/NEW

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2013-01-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2013-01-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: asyncore's __getattr__ horror was scheduled for removal a long ago (3.1 as per issue8483). We can safely remove it for 3.4 and fix the RuntimeError exception above for all the earlier Python versions which are affected. -- _

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2013-01-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: Same problem in 3.4. $ ./python Python 3.4.0a0 (default:e1bee8b09828, Jan 5 2013, 20:29:00) [GCC 4.3.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import asyncore >>> a = asyncore.dispatcher() >>> del a.socket >>> a.foo

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Xavier de Gaye
Xavier de Gaye 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? This is right. > I think I prefer the new behavior... > The patch looks good, I would simply have raised AttributeError(name) >

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Let's add the test to 3.3 nonetheless. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: IMO, patch should only be applied to Python 3.2. For 3.3 we finally have the chance to get rid of the dispatcher.__getattr__ aberration (see issue 8483) so I say let's just remove it and fix this issue as a consequence. --

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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. --

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: About why the asyncore bug shows up in python 3.2: The simple test below is ok with python 3.1 but triggers a "RuntimeError: maximum recursion depth exceeded..." with python 3.2: $ python3.1 Python 3.1.2 (r312:79147, Apr 4 2010, 17:46:48) [GCC 4.3.2] on linu

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-05 Thread Xavier de Gaye
Xavier de Gaye added the comment: The infinite recursion occurs also when running python 3.2 with the extension modules copy, copyreg and asyncore from python 3.1. So it seems this regression is not caused by a modification in these modules. Anyway, the bug is in asyncore. The attached patch fi

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +giampaolo.rodola, josiahcarlson, stutzbach stage: -> test needed ___ Python tracker ___ ___ Pytho

[issue13103] copy of an asyncore dispatcher causes infinite recursion

2011-10-04 Thread Xavier de Gaye
New submission from Xavier de Gaye : A regression occurs in python 3.2 when doing a copy of an asyncore dispatcher. $ python3.1 Python 3.1.2 (r312:79147, Apr 4 2010, 17:46:48) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import asyncore, copy