[docs] asyncio.Semaphore.release is not a coroutine
Andrew Svetlov
andrew.svetlov at gmail.com
Fri May 8 13:16:30 CEST 2015
Fixed in 7eb524cbe6e5.
Thanks for report!
On Fri, May 8, 2015 at 2:25 AM, Alexander Shorin <kxepal at gmail.com> wrote:
> Hi docs@ team!
>
> Basically, asyncio.Semaphore.release method has a coroutine prefix in docs:
> https://docs.python.org/3/library/asyncio-sync.html#asyncio.Semaphore.release
>
> But in the code it has not such wrapper:
> https://hg.python.org/cpython/file/b4cbecbc0781/Lib/asyncio/locks.py#l431
>
> The exact type of .release() method is very important as coroutines
> cannot be used in Future's on done callbacks and according
> documentation it's not possible to do with Semaphore.release while
> it's not a true.
>
> --
> ,,,^..^,,,
> _______________________________________________
> docs mailing list
> docs at python.org
> https://mail.python.org/mailman/listinfo/docs
--
Thanks,
Andrew Svetlov
More information about the docs
mailing list