@@ -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
@@ -1440,9 +1440,9 @@ imp
1440
1440
loader.exec_module(module)
1441
1441
return module
1442
1442
1443
- * Removed :mod: `!imp ` functions and attributes with no replacements:
1443
+ * Remove :mod: `!imp ` functions and attributes with no replacements:
1444
1444
1445
- * undocumented functions:
1445
+ * Undocumented functions:
1446
1446
1447
1447
* ``imp.init_builtin() ``
1448
1448
* ``imp.load_compiled() ``
@@ -1523,7 +1523,7 @@ ssl
1523
1523
unittest
1524
1524
--------
1525
1525
1526
- * Removed many old deprecated :mod: `unittest ` features:
1526
+ * Remove many long- deprecated :mod: `unittest ` features:
1527
1527
1528
1528
* A number of :class: `~unittest.TestCase ` method aliases:
1529
1529
@@ -1566,7 +1566,7 @@ webbrowser
1566
1566
----------
1567
1567
1568
1568
* Remove support for obsolete browsers from :mod: `webbrowser `.
1569
- Removed browsers include: Grail, Mosaic, Netscape, Galeon, Skipstone,
1569
+ The removed browsers include: Grail, Mosaic, Netscape, Galeon, Skipstone,
1570
1570
Iceape, Firebird, and Firefox versions 35 and below (:gh: `102871 `).
1571
1571
1572
1572
xml.etree.ElementTree
@@ -1589,8 +1589,8 @@ zipimport
1589
1589
Others
1590
1590
------
1591
1591
1592
- * Removed the ``suspicious `` rule from the documentation :file: `Makefile `, and
1593
- removed `` Doc/tools/rstlint.py ` `, both in favor of `sphinx-lint
1592
+ * Remove the ``suspicious `` rule from the documentation :file: `Makefile ` and
1593
+ :file: ` Doc/tools/rstlint.py `, both in favor of `sphinx-lint
1594
1594
<https://github.com/sphinx-contrib/sphinx-lint> `_.
1595
1595
(Contributed by Julien Palard in :gh: `98179 `.)
1596
1596
@@ -1620,7 +1620,7 @@ Changes in the Python API
1620
1620
contain ASCII letters and digits and underscore.
1621
1621
(Contributed by Serhiy Storchaka in :gh: `91760 `.)
1622
1622
1623
- * Removed ``randrange() `` functionality deprecated since Python 3.10. Formerly,
1623
+ * Remove ``randrange() `` functionality deprecated since Python 3.10. Formerly,
1624
1624
``randrange(10.0) `` losslessly converted to ``randrange(10) ``. Now, it raises a
1625
1625
:exc: `TypeError `. Also, the exception raised for non-integer values such as
1626
1626
``randrange(10.5) `` or ``randrange('10') `` has been changed from :exc: `ValueError ` to
@@ -1634,7 +1634,7 @@ Changes in the Python API
1634
1634
to :term: `filesystem encoding and error handler `.
1635
1635
Argument files should be encoded in UTF-8 instead of ANSI Codepage on Windows.
1636
1636
1637
- * Removed the ``asyncore ``-based ``smtpd `` module deprecated in Python 3.4.7
1637
+ * Remove the ``asyncore ``-based ``smtpd `` module deprecated in Python 3.4.7
1638
1638
and 3.5.4. A recommended replacement is the
1639
1639
:mod: `asyncio `-based aiosmtpd _ PyPI module.
1640
1640
@@ -1761,7 +1761,7 @@ New Features
1761
1761
------------
1762
1762
1763
1763
1764
- * :pep: `697 `: Introduced the :ref: `Unstable C API tier <unstable-c-api >`,
1764
+ * :pep: `697 `: Introduce the :ref: `Unstable C API tier <unstable-c-api >`,
1765
1765
intended for low-level tools like debuggers and JIT compilers.
1766
1766
This API may change in each minor release of CPython without deprecation
1767
1767
warnings.
@@ -1783,7 +1783,7 @@ New Features
1783
1783
1784
1784
(Contributed by Petr Viktorin in :gh: `101101 `.)
1785
1785
1786
- * :pep: `697 `: Added API for extending types whose instance memory layout is
1786
+ * :pep: `697 `: Add an API for extending types whose instance memory layout is
1787
1787
opaque:
1788
1788
1789
1789
- :c:member: `PyType_Spec.basicsize ` can be zero or negative to specify
@@ -1798,7 +1798,7 @@ New Features
1798
1798
1799
1799
(Contributed by Petr Viktorin in :gh: `103509 `.)
1800
1800
1801
- * Added the new :ref: `limited C API <limited-c-api >` function :c:func: `PyType_FromMetaclass `,
1801
+ * Add the new :ref: `limited C API <limited-c-api >` function :c:func: `PyType_FromMetaclass `,
1802
1802
which generalizes the existing :c:func: `PyType_FromModuleAndSpec ` using
1803
1803
an additional metaclass argument.
1804
1804
(Contributed by Wenzel Jakob in :gh: `93012 `.)
@@ -1837,13 +1837,13 @@ New Features
1837
1837
protocol are now available in the :ref: `Limited API <stable >`. (Contributed
1838
1838
by Wenzel Jakob in :gh: `98586 `.)
1839
1839
1840
- * Added two new public functions,
1840
+ * Add two new public functions,
1841
1841
:c:func: `PyEval_SetProfileAllThreads ` and
1842
1842
:c:func: `PyEval_SetTraceAllThreads `, that allow to set tracing and profiling
1843
1843
functions in all running threads in addition to the calling one. (Contributed
1844
1844
by Pablo Galindo in :gh: `93503 `.)
1845
1845
1846
- * Added new function :c:func: `PyFunction_SetVectorcall ` to the C API
1846
+ * Add new function :c:func: `PyFunction_SetVectorcall ` to the C API
1847
1847
which sets the vectorcall field of a given :c:type: `PyFunctionObject `.
1848
1848
(Contributed by Andrew Frost in :gh: `92257 `.)
1849
1849
@@ -1853,11 +1853,11 @@ New Features
1853
1853
compilers, or debuggers.
1854
1854
(Contributed by Carl Meyer in :gh: `91052 `.)
1855
1855
1856
- * Added :c:func: `PyType_AddWatcher ` and :c:func: `PyType_Watch ` API to register
1856
+ * Add :c:func: `PyType_AddWatcher ` and :c:func: `PyType_Watch ` API to register
1857
1857
callbacks to receive notification on changes to a type.
1858
1858
(Contributed by Carl Meyer in :gh: `91051 `.)
1859
1859
1860
- * Added :c:func: `PyCode_AddWatcher ` and :c:func: `PyCode_ClearWatcher `
1860
+ * Add :c:func: `PyCode_AddWatcher ` and :c:func: `PyCode_ClearWatcher `
1861
1861
APIs to register callbacks to receive notification on creation and
1862
1862
destruction of code objects.
1863
1863
(Contributed by Itamar Oren in :gh: `91054 `.)
@@ -1887,8 +1887,8 @@ New Features
1887
1887
to replace the legacy-api :c:func: `!PyErr_Display `. (Contributed by
1888
1888
Irit Katriel in :gh: `102755 `).
1889
1889
1890
- * :pep: `683 `: Introduced Immortal Objects to Python which allows objects
1891
- to bypass reference counts and introduced changes to the C-API:
1890
+ * :pep: `683 `: Introduce * Immortal Objects *, which allows objects
1891
+ to bypass reference counts, and related changes to the C-API:
1892
1892
1893
1893
- ``_Py_IMMORTAL_REFCNT ``: The reference count that defines an object
1894
1894
as immortal.
@@ -1905,7 +1905,7 @@ New Features
1905
1905
1906
1906
(Contributed by Eddie Elizondo in :gh: `84436 `.)
1907
1907
1908
- * :pep: `684 `: Added the new :c:func: `Py_NewInterpreterFromConfig `
1908
+ * :pep: `684 `: Add the new :c:func: `Py_NewInterpreterFromConfig `
1909
1909
function and :c:type: `PyInterpreterConfig `, which may be used
1910
1910
to create sub-interpreters with their own GILs.
1911
1911
(See :ref: `whatsnew312-pep684 ` for more info.)
@@ -1954,7 +1954,7 @@ Porting to Python 3.12
1954
1954
copied as-is to the result string, and any extra arguments discarded.
1955
1955
(Contributed by Serhiy Storchaka in :gh: `95781 `.)
1956
1956
1957
- * Fixed wrong sign placement in :c:func: `PyUnicode_FromFormat ` and
1957
+ * Fix wrong sign placement in :c:func: `PyUnicode_FromFormat ` and
1958
1958
:c:func: `PyUnicode_FromFormatV `.
1959
1959
(Contributed by Philip Georgi in :gh: `95504 `.)
1960
1960
0 commit comments