A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-January/131692.html below:

Fix CoroWrapper (fix my previous commit)

[Python-Dev] cpython: asyncio: Fix CoroWrapper (fix my previous commit) [Python-Dev] cpython: asyncio: Fix CoroWrapper (fix my previous commit)Antoine Pitrou solipsis at pitrou.net
Thu Jan 16 12:40:56 CET 2014
On Thu, 16 Jan 2014 01:55:43 +0100 (CET)
victor.stinner <python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/f07161c4f3aa
> changeset:   88494:f07161c4f3aa
> user:        Victor Stinner <victor.stinner at gmail.com>
> date:        Thu Jan 16 01:55:29 2014 +0100
> summary:
>   asyncio: Fix CoroWrapper (fix my previous commit)
> 
> Add __name__ and __doc__ to __slots__
> 
> files:
>   Lib/asyncio/tasks.py |  4 +---
>   1 files changed, 1 insertions(+), 3 deletions(-)
> 
> 
> diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
> --- a/Lib/asyncio/tasks.py
> +++ b/Lib/asyncio/tasks.py
> @@ -32,9 +32,7 @@
>  
>  
>  class CoroWrapper:
> -    """Wrapper for coroutine in _DEBUG mode."""
> -
> -    __slots__ = ['gen', 'func']
> +    __slots__ = ['gen', 'func', '__name__', '__doc__']
>  

Why did you remove the docstring?

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4