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

2014-01-16 Thread Guido van Rossum
Yeah the confusing thing is that omitting the docstring fixes it -- the class still has a __doc__ attribute but apparently it comes from the metaclass. :-) I guess you *could* have both a class and an instance __doc__ by making a really clever descriptor, but it seems simpler to just use a comment

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

2014-01-16 Thread Christian Heimes
On 16.01.2014 16:57, Guido van Rossum wrote: > 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.) That's true for all class attributes. You can't have a slot and a class attribute at the same time.

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

2014-01-16 Thread Guido van Rossum
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 wrote: > On Thu, 16 Jan 2014 01:55:43 +0100 (CET) > victor.stinner wrote: >> http://hg.python.org/cpy

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

2014-01-16 Thread Antoine Pitrou
On Thu, 16 Jan 2014 01:55:43 +0100 (CET) victor.stinner wrote: > http://hg.python.org/cpython/rev/f07161c4f3aa > changeset: 88494:f07161c4f3aa > user:Victor Stinner > date:Thu Jan 16 01:55:29 2014 +0100 > summary: > asyncio: Fix CoroWrapper (fix my previous commit) > > Add __