Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
whatsnew
  • Loading branch information
kumaraditya303 committed Dec 26, 2024
commit 2a78312fa6addba3376f444cf3aae158f9e64cff
33 changes: 29 additions & 4 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -691,10 +691,35 @@ Deprecated
(Contributed by Serhiy Storchaka in :gh:`58032`.)

* :mod:`asyncio`:
:func:`!asyncio.iscoroutinefunction` is deprecated
and will be removed in Python 3.16,
use :func:`inspect.iscoroutinefunction` instead.
(Contributed by Jiahao Li and Kumar Aditya in :gh:`122875`.)

* :func:`!asyncio.iscoroutinefunction` is deprecated
and will be removed in Python 3.16,
use :func:`inspect.iscoroutinefunction` instead.
Comment thread
kumaraditya303 marked this conversation as resolved.
(Contributed by Jiahao Li and Kumar Aditya in :gh:`122875`.)

* :mod:`asyncio` policy system is deprecated and will be removed in Python 3.16.
The following classes and functions are deprecated:
Comment thread
kumaraditya303 marked this conversation as resolved.
Outdated

* :class:`asyncio.AbstractEventLoopPolicy`
* :class:`asyncio.DefaultEventLoopPolicy`
* :class:`asyncio.WindowsSelectorEventLoopPolicy`
* :class:`asyncio.WindowsProactorEventLoopPolicy`
* :func:`asyncio.get_event_loop_policy`
* :func:`asyncio.set_event_loop_policy`

Users should use :func:`asyncio.run` or :class:`asyncio.Runner` with
*loop_factory* to use the desired event loop implementation.

For example: to use :class:`asyncio.ProactorEventLoop` on Windows::
Comment thread
kumaraditya303 marked this conversation as resolved.
Outdated

import asyncio

async def main():
...

asyncio.run(main(), loop_factory=asyncio.ProactorEventLoop)

(Contributed by Kumar Aditya in :gh:`127949`.)

* :mod:`builtins`:
Passing a complex number as the *real* or *imag* argument in the
Expand Down