bpo-36045: builtins.help() now prefixes `async` for async functions (GH-12010)
authorDan Rose <rotu@users.noreply.github.com>
Fri, 24 May 2019 11:38:01 +0000 (06:38 -0500)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 May 2019 11:38:01 +0000 (04:38 -0700)
commit2a37f8f55b543589cc77a67b5cd17cbd9d0311c9
tree7bf4242f52dd92ffb0c8a731fe7d2e0f1864556e
parentcf7d5ef49b1d28f35af137d23ec1a94f3eae090d
bpo-36045: builtins.help() now prefixes `async` for async functions (GH-12010)

Previously, it was hard to tell whether a function should be awaited. It was also incorrect (per PEP 484) to put this in the type hint for coroutine functions. Added this info to the output of builtins.help and pydoc.

https://bugs.python.org/issue36045
Lib/pydoc.py
Lib/test/test_pydoc.py
Misc/NEWS.d/next/Core and Builtins/2019-02-24-12-44-46.bpo-36045.RO20OV.rst [new file with mode: 0644]