[issue11257] asyncore stores unnecessary object references
Марк Коренберг
report at bugs.python.org
Mon Feb 21 05:44:57 CET 2011
Марк Коренберг <socketpair at gmail.com> added the comment:
--- asyncore.py 2010-09-15 22:18:21.000000000 +0600
+++ asyncore.py 2011-02-21 09:43:15.033839614 +0500
@@ -58,7 +58,7 @@
try:
socket_map
except NameError:
- socket_map = {}
+ socket_map = weakref.WeakValueDictionary()
def _strerror(err):
try:
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11257>
_______________________________________
More information about the Python-bugs-list
mailing list