GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — GH-109190: Copyedit 3.12 What's New: Deprecations by AA-Turner · Pull Request #109766 · python/cpython Conversation
|
| * The child watcher classes :class:`asyncio.MultiLoopChildWatcher`, | ||
| :class:`asyncio.FastChildWatcher`, :class:`asyncio.AbstractChildWatcher` | ||
| and :class:`asyncio.SafeChildWatcher` are deprecated and | ||
| will be removed in Python 3.14. It is recommended to not manually | ||
| configure a child watcher as the event loop now uses the best available | ||
| child watcher for each platform (:class:`asyncio.PidfdChildWatcher` | ||
| if supported and :class:`asyncio.ThreadedChildWatcher` otherwise). | ||
| (Contributed by Kumar Aditya in :gh:`94597`.) | ||
|
|
||
| * :func:`asyncio.set_child_watcher`, :func:`asyncio.get_child_watcher`, | ||
| :meth:`asyncio.AbstractEventLoopPolicy.set_child_watcher` and | ||
| :meth:`asyncio.AbstractEventLoopPolicy.get_child_watcher` are deprecated | ||
| and will be removed in Python 3.14. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
asyncio had two deprecations noted in "Improved Modules", these have been moved
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * :mod:`argparse`: The *type*, *choices*, and *metavar* parameters | ||
| of :class:`!argparse.BooleanOptionalAction` are deprecated | ||
| and will be removed in 3.14. | ||
| (Contributed by Nikita Sobolev in :gh:`92248`.) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copied from Pending Removal
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * :mod:`ast`: The following :mod:`ast` features have been deprecated in documentation since | ||
| Python 3.8, now cause a :exc:`DeprecationWarning` to be emitted at runtime | ||
| when they are accessed or used, and will be removed in Python 3.14: | ||
|
|
||
| * :class:`!ast.Num` | ||
| * :class:`!ast.Str` | ||
| * :class:`!ast.Bytes` | ||
| * :class:`!ast.NameConstant` | ||
| * :class:`!ast.Ellipsis` | ||
|
|
||
| Use :class:`ast.Constant` instead. | ||
| (Contributed by Serhiy Storchaka in :gh:`90953`.) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copied from Pending Removal
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * :mod:`asyncio`: | ||
|
|
||
| * The child watcher classes :class:`asyncio.MultiLoopChildWatcher`, | ||
| :class:`asyncio.FastChildWatcher`, :class:`asyncio.AbstractChildWatcher` | ||
| and :class:`asyncio.SafeChildWatcher` are deprecated and | ||
| will be removed in Python 3.14. | ||
| (Contributed by Kumar Aditya in :gh:`94597`.) | ||
|
|
||
| * :func:`asyncio.set_child_watcher`, :func:`asyncio.get_child_watcher`, | ||
| :meth:`asyncio.AbstractEventLoopPolicy.set_child_watcher` and | ||
| :meth:`asyncio.AbstractEventLoopPolicy.get_child_watcher` are deprecated | ||
| and will be removed in Python 3.14. | ||
| (Contributed by Kumar Aditya in :gh:`94597`.) | ||
|
|
||
| * The :meth:`~asyncio.get_event_loop` method of the | ||
| default event loop policy now emits a :exc:`DeprecationWarning` if there | ||
| is no current event loop set and it decides to create one. | ||
| (Contributed by Serhiy Storchaka and Guido van Rossum in :gh:`100160`.) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
(1) and (2) copied from Improved Modules, (3) copied from Pending Removal. Note that I've deleted the entry for asyncio.Future.cancel & asyncio.Task.cancel as it was reverted in #97999
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * :mod:`collections.abc`: Deprecated :class:`collections.abc.ByteString`. | ||
| Prefer :class:`Sequence` or :class:`collections.abc.Buffer`. | ||
| For use in typing, prefer a union, like ``bytes | bytearray``, or :class:`collections.abc.Buffer`. | ||
| (Contributed by Shantanu Jain in :gh:`91896`.) | ||
|
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Copied from Pending Removal
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * The 3-arg signatures (type, value, traceback) of :meth:`coroutine throw() | ||
| <coroutine.throw>`, :meth:`generator throw() <generator.throw>` and | ||
| :meth:`async generator throw() <agen.athrow>` are deprecated and |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Added explicit titles to avoid the text saying throw(), throw(), and athrow()
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * Setting ``__package__`` or ``__cached__`` on a module is deprecated, | ||
| and will cease to be set or taken into consideration by the import system in Python 3.14. | ||
| (Contributed by Brett Cannon in :gh:`65961`.) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Rephrased from Pending Removal
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| error in Python 3.14. Use ``not`` for logical negation of bools instead. | ||
| In the rare case that you really need the bitwise inversion of the underlying | ||
| ``int``, convert to int explicitly with ``~int(x)``. (Contributed by Tim Hoffmann | ||
| ``int``, convert to int explicitly: ``~int(x)``. (Contributed by Tim Hoffmann |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
style -- this is both the conversion and inversion, so don't say "with"
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * Accessing ``co_lnotab`` on code objects was deprecated in Python 3.10 via :pep:`626`, | ||
| but it only got a proper :exc:`DeprecationWarning` in 3.12, | ||
| therefore it will be removed in 3.14. | ||
| (Contributed by Nikita Sobolev in :gh:`101866`.) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Rephrased from Pending Removal
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| The following APIs have been deprecated | ||
| and will be removed in Python 3.14. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Adapted from the Pending Removal in Python 3.13 summary
Sorry, something went wrong.
There was an error while loading. Please reload this page.
# Conflicts: # Doc/whatsnew/3.12.rst
# Conflicts: # Doc/whatsnew/3.12.rst
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Might as well; pushed a commit. A |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @AA-Turner for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
) (cherry picked from commit 87ddfa7) Co-authored-by: Adam Turner <[email protected]>
|
GH-109925 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…109925) * GH-109190: Copyedit 3.12 What's New: Deprecations (GH-109766) (cherry picked from commit 87ddfa7) Co-authored-by: Adam Turner <[email protected]> * GH-109190: Copyedit 3.12 What's New: Deprecations (``os`` fix) (#109927) Merge the two ``os`` entries (cherry picked from commit 0e28d0f) --------- Co-authored-by: Adam Turner <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.