summaryrefslogtreecommitdiff
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2014-04-27 10:44:22 -0700
committerGuido van Rossum <guido@python.org>2014-04-27 10:44:22 -0700
commit94ba146d11869288ab3def8c7426b3b36701416a (patch)
tree40e5d7317ea6ff177ffc99e62a13c6034ef8b45c /Lib/asyncio/events.py
parent83c1ddda469e7a99f11afc7d6758b3d80ad9aa3b (diff)
downloadcpython-git-94ba146d11869288ab3def8c7426b3b36701416a.tar.gz
asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166.
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 57af68afb6..31592d10b1 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -16,7 +16,7 @@ import socket
class Handle:
"""Object returned by callback registration methods."""
- __slots__ = ['_callback', '_args', '_cancelled', '_loop']
+ __slots__ = ['_callback', '_args', '_cancelled', '_loop', '__weakref__']
def __init__(self, callback, args, loop):
assert not isinstance(callback, Handle), 'A Handle is not a callback'