Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cpython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sip
Cpython
Commits
8dbec4db
Unverified
Commit
8dbec4db
authored
2 years ago
by
C.A.M. Gerlach
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
gh-95913: Edit, xref & sort 3.11 WhatsNew Removed section (#98584)
parent
e2dc2230
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Doc/whatsnew/3.11.rst
+61
-58
61 additions, 58 deletions
Doc/whatsnew/3.11.rst
with
61 additions
and
58 deletions
Doc/whatsnew/3.11.rst
+
61
−
58
View file @
8dbec4db
...
...
@@ -1734,95 +1734,98 @@ This section lists Python APIs that have been removed in Python 3.12.
Removed C APIs are :ref:`listed separately <whatsnew311-c-api-removed>`.
* :class:`smtpd.MailmanProxy` is now removed as it is unusable without
an external module, ``mailman``. (Contributed by Dong-hee Na in :issue:`35800`.)
* Removed the :func:`!@asyncio.coroutine` :term:`decorator`
enabling legacy generator-based coroutines to be compatible with
:keyword:`async` / :keyword:`await` code.
The function has been deprecated since Python 3.8 and the removal was
initially scheduled for Python 3.10. Use :keyword:`async def` instead.
(Contributed by Illia Volochii in :issue:`43216`.)
* Removed :class:`!asyncio.coroutines.CoroWrapper` used for wrapping legacy
generator-based coroutine objects in the debug mode.
(Contributed by Illia Volochii in :issue:`43216`.)
* Due to significant security concerns, the *reuse_address* parameter of
:meth:`asyncio.loop.create_datagram_endpoint`, disabled in Python 3.9, is
now entirely removed. This is because of the behavior of the socket option
``SO_REUSEADDR`` in UDP.
(Contributed by Hugo van Kemenade in :issue:`45129`.)
* The ``binhex`` module, deprecated in Python 3.9, is now removed.
The following :mod:`binascii` functions, deprecated in Python 3.9, are now
also removed:
* Removed the :mod:`!binhex` module, deprecated in Python 3.9.
Also removed the related, similarly-deprecated :mod:`binascii` functions:
* ``a2b_hqx()``, ``b2a_hqx()``;
* ``rlecode_hqx()``, ``rledecode_hqx()``.
* :func:`!binascii.a2b_hqx`
* :func:`!binascii.b2a_hqx`
* :func:`!binascii.rlecode_hqx`
* :func:`!binascii.rldecode_hqx`
The :func:`binascii.crc_hqx` function remains available.
(Contributed by Victor Stinner in :issue:`45085`.)
*
The
distutils ``bdist_msi`` command
,
deprecated in Python 3.9
, is now removed
.
*
Removed the :mod:`
distutils
`
``bdist_msi`` command deprecated in Python 3.9.
Use ``bdist_wheel`` (wheel packages) instead.
(Contributed by Hugo van Kemenade in :issue:`45124`.)
* Due to significant security concerns, the *reuse_address* parameter of
:meth:`asyncio.loop.create_datagram_endpoint`, disabled in Python 3.9, is
now entirely removed. This is because of the behavior of the socket option
``SO_REUSEADDR`` in UDP.
(Contributed by Hugo van Kemenade in :issue:`45129`.)
* Removed :meth:`__getitem__` methods of
* Removed the :meth:`~object.__getitem__` methods of
:class:`xml.dom.pulldom.DOMEventStream`, :class:`wsgiref.util.FileWrapper`
and :class:`fileinput.FileInput`, deprecated since Python 3.9.
(Contributed by Hugo van Kemenade in :issue:`45132`.)
* The following deprecated functions and methods are removed in the :mod:`gettext`
module: :func:`~gettext.lgettext`, :func:`~gettext.ldgettext`,
:func:`~gettext.lngettext` and :func:`~gettext.ldngettext`.
Function :func:`~gettext.bind_textdomain_codeset`, methods
:meth:`~gettext.NullTranslations.output_charset` and
:meth:`~gettext.NullTranslations.set_output_charset`, and the *codeset*
parameter of functions :func:`~gettext.translation` and
:func:`~gettext.install` are also removed, since they are only used for
the ``l*gettext()`` functions.
* Removed the deprecated :mod:`gettext` functions
:func:`!lgettext`, :func:`!ldgettext`,
:func:`!lngettext` and :func:`!ldngettext`.
Also removed the :func:`!bind_textdomain_codeset` function,
the :meth:`!NullTranslations.output_charset` and
:meth:`!NullTranslations.set_output_charset` methods,
and the *codeset* parameter of :func:`!translation` and :func:`!install`,
since they are only used for the :func:`!l*gettext` functions.
(Contributed by Dong-hee Na and Serhiy Storchaka in :issue:`44235`.)
* The :func:`@asyncio.coroutine <asyncio.coroutine>` :term:`decorator` enabling
legacy generator-based coroutines to be compatible with async/await code.
The function has been deprecated since Python 3.8 and the removal was
initially scheduled for Python 3.10. Use :keyword:`async def` instead.
(Contributed by Illia Volochii in :issue:`43216`.)
* :class:`asyncio.coroutines.CoroWrapper` used for wrapping legacy
generator-based coroutine objects in the debug mode.
(Contributed by Illia Volochii in :issue:`43216`.)
* Removed the deprecated ``split()`` method of :class:`_tkinter.TkappType`.
(Contributed by Erlend E. Aasland in :issue:`38371`.)
* Removed from the :mod:`inspect` module:
*
t
he
``
getargspec`
`
function, deprecated since Python 3.0;
*
T
he
:func:`!
getargspec` function, deprecated since Python 3.0;
use :func:`inspect.signature` or :func:`inspect.getfullargspec` instead.
*
t
he
``
formatargspec`
`
function, deprecated since Python 3.5;
use the :func:`inspect.signature` function
and :class:`Signature` object
directly.
*
T
he
:func:`!
formatargspec` function, deprecated since Python 3.5;
use the :func:`inspect.signature` function
or the :class:`inspect.Signature` object
directly.
*
t
he undocumented
``
Signature.from_builtin`
` and ``Signature.from_function``
function
s, deprecated since Python 3.5;
use the
:meth:`Signature.from_callable() <inspect.Signature.from_callable>`
method
instead.
*
T
he undocumented
:meth:`!
Signature.from_builtin`
and :meth:`!Signature.from_function` method
s, deprecated since Python 3.5;
use the
:meth:`Signature.from_callable() <inspect.Signature.from_callable>`
method
instead.
(Contributed by Hugo van Kemenade in :issue:`45320`.)
* Remove namespace package support from unittest discovery. It was introduced in
Python 3.4 but has been broken since Python 3.7.
(Contributed by Inada Naoki in :issue:`23882`.)
* Remove ``__class_getitem__`` method from :class:`pathlib.PurePath`,
* Removed the :meth:`~object.__class_getitem__` method
from :class:`pathlib.PurePath`,
because it was not used and added by mistake in previous versions.
(Contributed by Nikita Sobolev in :issue:`46483`.)
* Remove the undocumented private ``float.__set_format__()`` method, previously
known as ``float.__setformat__()`` in Python 3.7. Its docstring said: "You
probably don't want to use this function. It exists mainly to be used in
Python's test suite."
* Removed the :class:`!MailmanProxy` class in the :mod:`smtpd` module,
as it is unusable without the external :mod:`!mailman` package.
(Contributed by Dong-hee Na in :issue:`35800`.)
* Removed the deprecated :meth:`!split` method of :class:`!_tkinter.TkappType`.
(Contributed by Erlend E. Aasland in :issue:`38371`.)
* Removed namespace package support from :mod:`unittest` discovery.
It was introduced in Python 3.4 but has been broken since Python 3.7.
(Contributed by Inada Naoki in :issue:`23882`.)
* Removed the undocumented private :meth:`!float.__set_format__()` method,
previously known as :meth:`!float.__setformat__()` in Python 3.7.
Its docstring said: "You probably don't want to use this function.
It exists mainly to be used in Python's test suite."
(Contributed by Victor Stinner in :issue:`46852`.)
* The
``
--experimental-isolated-subinterpreters`
`
configure flag
(and corresponding
``
EXPERIMENTAL_ISOLATED_SUBINTERPRETERS`
`
)
* The
:option:`!
--experimental-isolated-subinterpreters` configure flag
(and corresponding
:c:macro:`!
EXPERIMENTAL_ISOLATED_SUBINTERPRETERS`
macro
)
have been removed.
* Pynche --- The Pythonically Natural Color and Hue Editor --- has been moved out
* `Pynche <https://pypi.org/project/pynche/>`_
--- The Pythonically Natural Color and Hue Editor --- has been moved out
of ``Tools/scripts`` and is `being developed independently
<https://gitlab.com/warsaw/pynche/-/tree/main>`_ from the Python source tree.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment