Skip to content

Commit a8d6992

Browse files
authored
Merge branch 'python:main' into wasi-fix
2 parents 0c1ca04 + 453562a commit a8d6992

17 files changed

Lines changed: 1724 additions & 1269 deletions

Doc/deprecations/pending-removal-in-3.20.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Pending removal in Python 3.20
22
------------------------------
33

4+
* Calling the ``__new__()`` method of :class:`struct.Struct` without the
5+
*format* argument is deprecated and will be removed in Python 3.20. Calling
6+
:meth:`~object.__init__` method on initialized :class:`~struct.Struct`
7+
objects is deprecated and will be removed in Python 3.20.
8+
9+
(Contributed by Sergey B Kirpichev and Serhiy Storchaka in :gh:`143715`.)
10+
411
* The ``__version__``, ``version`` and ``VERSION`` attributes have been
512
deprecated in these standard library modules and will be removed in
613
Python 3.20. Use :py:data:`sys.version_info` instead.

Doc/whatsnew/3.15.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,6 +1560,15 @@ New deprecations
15601560

15611561
(Contributed by Bénédikt Tran in :gh:`134978`.)
15621562

1563+
* :mod:`struct`:
1564+
1565+
* Calling the ``Struct.__new__()`` without required argument now is
1566+
deprecated and will be removed in Python 3.20. Calling
1567+
:meth:`~object.__init__` method on initialized :class:`~struct.Struct`
1568+
objects is deprecated and will be removed in Python 3.20.
1569+
1570+
(Contributed by Sergey B Kirpichev and Serhiy Storchaka in :gh:`143715`.)
1571+
15631572
* ``__version__``
15641573

15651574
* The ``__version__``, ``version`` and ``VERSION`` attributes have been

Include/internal/pycore_opcode_metadata.h

Lines changed: 31 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)