@@ -570,7 +570,7 @@ asyncio
570
570
writing to sockets and uses :meth: `~socket.socket.sendmsg ` if the platform
571
571
supports it. (Contributed by Kumar Aditya in :gh: `91166 `.)
572
572
573
- * Added :func: `asyncio.eager_task_factory ` and :func: `asyncio.create_eager_task_factory `
573
+ * Add :func: `asyncio.eager_task_factory ` and :func: `asyncio.create_eager_task_factory `
574
574
functions to allow opting an event loop in to eager task execution,
575
575
making some use-cases 2x to 5x faster.
576
576
(Contributed by Jacob Bower & Itamar Oren in :gh: `102853 `, :gh: `104140 `, and :gh: `104138 `)
@@ -666,17 +666,17 @@ inspect
666
666
itertools
667
667
---------
668
668
669
- * Added :class: `itertools.batched() ` for collecting into even-sized
669
+ * Add :class: `itertools.batched() ` for collecting into even-sized
670
670
tuples where the last batch may be shorter than the rest.
671
671
(Contributed by Raymond Hettinger in :gh: `98363 `.)
672
672
673
673
math
674
674
----
675
675
676
- * Added :func: `math.sumprod ` for computing a sum of products.
676
+ * Add :func: `math.sumprod ` for computing a sum of products.
677
677
(Contributed by Raymond Hettinger in :gh: `100485 `.)
678
678
679
- * Extended :func: `math.nextafter ` to include a *steps * argument
679
+ * Extend :func: `math.nextafter ` to include a *steps * argument
680
680
for moving up or down multiple steps at a time.
681
681
(By Matthias Goergens, Mark Dickinson, and Raymond Hettinger in :gh: `94906 `.)
682
682
@@ -749,10 +749,10 @@ pdb
749
749
random
750
750
------
751
751
752
- * Added :func: `random.binomialvariate `.
752
+ * Add :func: `random.binomialvariate `.
753
753
(Contributed by Raymond Hettinger in :gh: `81620 `.)
754
754
755
- * Added a default of ``lamb=1.0 `` to :func: `random.expovariate `.
755
+ * Add a default of ``lamb=1.0 `` to :func: `random.expovariate `.
756
756
(Contributed by Raymond Hettinger in :gh: `100234 `.)
757
757
758
758
shutil
@@ -811,7 +811,7 @@ sqlite3
811
811
statistics
812
812
----------
813
813
814
- * Extended :func: `statistics.correlation ` to include as a ``ranked `` method
814
+ * Extend :func: `statistics.correlation ` to include as a ``ranked `` method
815
815
for computing the Spearman correlation of ranked data.
816
816
(Contributed by Raymond Hettinger in :gh: `95861 `.)
817
817
@@ -949,7 +949,7 @@ unicodedata
949
949
unittest
950
950
--------
951
951
952
- Added ``--durations `` command line option, showing the N slowest test cases::
952
+ Add a ``--durations `` command line option, showing the N slowest test cases::
953
953
954
954
python3 -m unittest --durations=3 lib.tests.test_threading
955
955
.....
@@ -977,11 +977,11 @@ uuid
977
977
Optimizations
978
978
=============
979
979
980
- * Removed ``wstr `` and ``wstr_length `` members from Unicode objects.
980
+ * Remove ``wstr `` and ``wstr_length `` members from Unicode objects.
981
981
It reduces object size by 8 or 16 bytes on 64bit platform. (:pep: `623 `)
982
982
(Contributed by Inada Naoki in :gh: `92536 `.)
983
983
984
- * Added experimental support for using the BOLT binary optimizer in the build
984
+ * Add experimental support for using the BOLT binary optimizer in the build
985
985
process, which improves performance by 1-5%.
986
986
(Contributed by Kevin Modzelewski in :gh: `90536 ` and tuned by Donghee Na in :gh: `101525 `)
987
987
@@ -1014,7 +1014,7 @@ CPython bytecode changes
1014
1014
* Remove the :opcode: `!JUMP_IF_FALSE_OR_POP ` and :opcode: `!JUMP_IF_TRUE_OR_POP `
1015
1015
instructions. (Contributed by Irit Katriel in :gh: `102859 `.)
1016
1016
1017
- * Removed the :opcode: `!PRECALL ` instruction. (Contributed by Mark Shannon in
1017
+ * Remove the :opcode: `!PRECALL ` instruction. (Contributed by Mark Shannon in
1018
1018
:gh: `92925 `.)
1019
1019
1020
1020
* Add the :opcode: `LOAD_FAST_AND_CLEAR ` instruction as part of the
@@ -1441,9 +1441,9 @@ imp
1441
1441
loader.exec_module(module)
1442
1442
return module
1443
1443
1444
- * Removed :mod: `!imp ` functions and attributes with no replacements:
1444
+ * Remove :mod: `!imp ` functions and attributes with no replacements:
1445
1445
1446
- * undocumented functions:
1446
+ * Undocumented functions:
1447
1447
1448
1448
* ``imp.init_builtin() ``
1449
1449
* ``imp.load_compiled() ``
@@ -1524,7 +1524,7 @@ ssl
1524
1524
unittest
1525
1525
--------
1526
1526
1527
- * Removed many old deprecated :mod: `unittest ` features:
1527
+ * Remove many long- deprecated :mod: `unittest ` features:
1528
1528
1529
1529
* A number of :class: `~unittest.TestCase ` method aliases:
1530
1530
@@ -1567,7 +1567,7 @@ webbrowser
1567
1567
----------
1568
1568
1569
1569
* Remove support for obsolete browsers from :mod: `webbrowser `.
1570
- Removed browsers include: Grail, Mosaic, Netscape, Galeon, Skipstone,
1570
+ The removed browsers include: Grail, Mosaic, Netscape, Galeon, Skipstone,
1571
1571
Iceape, Firebird, and Firefox versions 35 and below (:gh: `102871 `).
1572
1572
1573
1573
xml.etree.ElementTree
@@ -1590,8 +1590,8 @@ zipimport
1590
1590
Others
1591
1591
------
1592
1592
1593
- * Removed the ``suspicious `` rule from the documentation :file: `Makefile `, and
1594
- removed `` Doc/tools/rstlint.py ` `, both in favor of `sphinx-lint
1593
+ * Remove the ``suspicious `` rule from the documentation :file: `Makefile ` and
1594
+ :file: ` Doc/tools/rstlint.py `, both in favor of `sphinx-lint
1595
1595
<https://github.com/sphinx-contrib/sphinx-lint> `_.
1596
1596
(Contributed by Julien Palard in :gh: `98179 `.)
1597
1597
@@ -1621,7 +1621,7 @@ Changes in the Python API
1621
1621
contain ASCII letters and digits and underscore.
1622
1622
(Contributed by Serhiy Storchaka in :gh: `91760 `.)
1623
1623
1624
- * Removed ``randrange() `` functionality deprecated since Python 3.10. Formerly,
1624
+ * Remove ``randrange() `` functionality deprecated since Python 3.10. Formerly,
1625
1625
``randrange(10.0) `` losslessly converted to ``randrange(10) ``. Now, it raises a
1626
1626
:exc: `TypeError `. Also, the exception raised for non-integer values such as
1627
1627
``randrange(10.5) `` or ``randrange('10') `` has been changed from :exc: `ValueError ` to
@@ -1635,7 +1635,7 @@ Changes in the Python API
1635
1635
to :term: `filesystem encoding and error handler `.
1636
1636
Argument files should be encoded in UTF-8 instead of ANSI Codepage on Windows.
1637
1637
1638
- * Removed the ``asyncore ``-based ``smtpd `` module deprecated in Python 3.4.7
1638
+ * Remove the ``asyncore ``-based ``smtpd `` module deprecated in Python 3.4.7
1639
1639
and 3.5.4. A recommended replacement is the
1640
1640
:mod: `asyncio `-based aiosmtpd _ PyPI module.
1641
1641
@@ -1760,7 +1760,7 @@ New Features
1760
1760
------------
1761
1761
1762
1762
1763
- * :pep: `697 `: Introduced the :ref: `Unstable C API tier <unstable-c-api >`,
1763
+ * :pep: `697 `: Introduce the :ref: `Unstable C API tier <unstable-c-api >`,
1764
1764
intended for low-level tools like debuggers and JIT compilers.
1765
1765
This API may change in each minor release of CPython without deprecation
1766
1766
warnings.
@@ -1782,7 +1782,7 @@ New Features
1782
1782
1783
1783
(Contributed by Petr Viktorin in :gh: `101101 `.)
1784
1784
1785
- * :pep: `697 `: Added API for extending types whose instance memory layout is
1785
+ * :pep: `697 `: Add an API for extending types whose instance memory layout is
1786
1786
opaque:
1787
1787
1788
1788
- :c:member: `PyType_Spec.basicsize ` can be zero or negative to specify
@@ -1797,7 +1797,7 @@ New Features
1797
1797
1798
1798
(Contributed by Petr Viktorin in :gh: `103509 `.)
1799
1799
1800
- * Added the new :ref: `limited C API <limited-c-api >` function :c:func: `PyType_FromMetaclass `,
1800
+ * Add the new :ref: `limited C API <limited-c-api >` function :c:func: `PyType_FromMetaclass `,
1801
1801
which generalizes the existing :c:func: `PyType_FromModuleAndSpec ` using
1802
1802
an additional metaclass argument.
1803
1803
(Contributed by Wenzel Jakob in :gh: `93012 `.)
@@ -1836,13 +1836,13 @@ New Features
1836
1836
protocol are now available in the :ref: `Limited API <stable >`. (Contributed
1837
1837
by Wenzel Jakob in :gh: `98586 `.)
1838
1838
1839
- * Added two new public functions,
1839
+ * Add two new public functions,
1840
1840
:c:func: `PyEval_SetProfileAllThreads ` and
1841
1841
:c:func: `PyEval_SetTraceAllThreads `, that allow to set tracing and profiling
1842
1842
functions in all running threads in addition to the calling one. (Contributed
1843
1843
by Pablo Galindo in :gh: `93503 `.)
1844
1844
1845
- * Added new function :c:func: `PyFunction_SetVectorcall ` to the C API
1845
+ * Add new function :c:func: `PyFunction_SetVectorcall ` to the C API
1846
1846
which sets the vectorcall field of a given :c:type: `PyFunctionObject `.
1847
1847
(Contributed by Andrew Frost in :gh: `92257 `.)
1848
1848
@@ -1852,11 +1852,11 @@ New Features
1852
1852
compilers, or debuggers.
1853
1853
(Contributed by Carl Meyer in :gh: `91052 `.)
1854
1854
1855
- * Added :c:func: `PyType_AddWatcher ` and :c:func: `PyType_Watch ` API to register
1855
+ * Add :c:func: `PyType_AddWatcher ` and :c:func: `PyType_Watch ` API to register
1856
1856
callbacks to receive notification on changes to a type.
1857
1857
(Contributed by Carl Meyer in :gh: `91051 `.)
1858
1858
1859
- * Added :c:func: `PyCode_AddWatcher ` and :c:func: `PyCode_ClearWatcher `
1859
+ * Add :c:func: `PyCode_AddWatcher ` and :c:func: `PyCode_ClearWatcher `
1860
1860
APIs to register callbacks to receive notification on creation and
1861
1861
destruction of code objects.
1862
1862
(Contributed by Itamar Oren in :gh: `91054 `.)
@@ -1886,8 +1886,8 @@ New Features
1886
1886
to replace the legacy-api :c:func: `!PyErr_Display `. (Contributed by
1887
1887
Irit Katriel in :gh: `102755 `).
1888
1888
1889
- * :pep: `683 `: Introduced Immortal Objects to Python which allows objects
1890
- to bypass reference counts and introduced changes to the C-API:
1889
+ * :pep: `683 `: Introduce * Immortal Objects *, which allows objects
1890
+ to bypass reference counts, and related changes to the C-API:
1891
1891
1892
1892
- ``_Py_IMMORTAL_REFCNT ``: The reference count that defines an object
1893
1893
as immortal.
@@ -1904,7 +1904,7 @@ New Features
1904
1904
1905
1905
(Contributed by Eddie Elizondo in :gh: `84436 `.)
1906
1906
1907
- * :pep: `684 `: Added the new :c:func: `Py_NewInterpreterFromConfig `
1907
+ * :pep: `684 `: Add the new :c:func: `Py_NewInterpreterFromConfig `
1908
1908
function and :c:type: `PyInterpreterConfig `, which may be used
1909
1909
to create sub-interpreters with their own GILs.
1910
1910
(See :ref: `whatsnew312-pep684 ` for more info.)
@@ -1953,7 +1953,7 @@ Porting to Python 3.12
1953
1953
copied as-is to the result string, and any extra arguments discarded.
1954
1954
(Contributed by Serhiy Storchaka in :gh: `95781 `.)
1955
1955
1956
- * Fixed wrong sign placement in :c:func: `PyUnicode_FromFormat ` and
1956
+ * Fix wrong sign placement in :c:func: `PyUnicode_FromFormat ` and
1957
1957
:c:func: `PyUnicode_FromFormatV `.
1958
1958
(Contributed by Philip Georgi in :gh: `95504 `.)
1959
1959
0 commit comments