[Python-Dev] cpython: asyncio: Fix CoroWrapper (fix my previous commit) (original) (raw)

Guido van Rossum guido at python.org
Thu Jan 16 16:57:33 CET 2014


Because somehow you can't have a slot named doc and a docstring in the class. Try it. (I tried to work around this but didn't get very far.)

On Thu, Jan 16, 2014 at 3:40 AM, Antoine Pitrou <solipsis at pitrou.net> wrote:

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.


Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/guido%40python.org

-- --Guido van Rossum (python.org/~guido)



More information about the Python-Dev mailing list