(original) (raw)

changeset: 88494:f07161c4f3aa user: Victor Stinner victor.stinner@gmail.com date: Thu Jan 16 01:55:29 2014 +0100 files: Lib/asyncio/tasks.py description: asyncio: Fix CoroWrapper (fix my previous commit) Add __name__ and __doc__ to __slots__ diff -r 429eb5f284dd -r f07161c4f3aa Lib/asyncio/tasks.py --- a/Lib/asyncio/tasks.py Thu Jan 16 01:38:24 2014 +0100 +++ b/Lib/asyncio/tasks.py Thu Jan 16 01:55:29 2014 +0100 @@ -32,9 +32,7 @@ class CoroWrapper: - """Wrapper for coroutine in _DEBUG mode.""" - - __slots__ = ['gen', 'func'] + __slots__ = ['gen', 'func', '__name__', '__doc__'] def __init__(self, gen, func): assert inspect.isgenerator(gen), gen /victor.stinner@gmail.com