commit | 94ba146d11869288ab3def8c7426b3b36701416a | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sun Apr 27 10:44:22 2014 -0700 |
committer | Guido van Rossum <guido@python.org> | Sun Apr 27 10:44:22 2014 -0700 |
tree | 40e5d7317ea6ff177ffc99e62a13c6034ef8b45c | |
parent | 83c1ddda469e7a99f11afc7d6758b3d80ad9aa3b [diff] [blame] |
asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166.
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index e8ee947..45a6342 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py
@@ -36,7 +36,7 @@ class CoroWrapper: # Wrapper for coroutine in _DEBUG mode. - __slots__ = ['gen', 'func', '__name__', '__doc__'] + __slots__ = ['gen', 'func', '__name__', '__doc__', '__weakref__'] def __init__(self, gen, func): assert inspect.isgenerator(gen), gen