diff options
author | Guido van Rossum <guido@python.org> | 2014-04-27 10:43:00 -0700 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2014-04-27 10:43:00 -0700 |
commit | f521d6a7dd3ddc2e70a88e7972816d25fd9b69ce (patch) | |
tree | a97f41f291e18ead8927ac45a12ab2e45783967a /asyncio/tasks.py | |
parent | c73c2bd1d362789dbcd7ad753e5889d8677ee0e6 (diff) | |
download | trollius-f521d6a7dd3ddc2e70a88e7972816d25fd9b69ce.tar.gz |
Add __weakref__ slots to Handle and CoroWrapper. Fixes issue #166.
Diffstat (limited to 'asyncio/tasks.py')
-rw-r--r-- | asyncio/tasks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asyncio/tasks.py b/asyncio/tasks.py index e8ee947..45a6342 100644 --- a/asyncio/tasks.py +++ b/asyncio/tasks.py @@ -36,7 +36,7 @@ _DEBUG = (not sys.flags.ignore_environment 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 |