Skip to content

Commit 7956186

Browse files
gh-95112: Fix What's New 3.10 contribution note periods (GH-95114)
Some are missing, a few placed after the ')'. One ') was missing. (cherry picked from commit c944649) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent 8fd2d36 commit 7956186

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ have been incorporated. Some of the most notable ones are as follows:
230230
^
231231
SyntaxError: expected ':'
232232
233-
(Contributed by Pablo Galindo in :issue:`42997`)
233+
(Contributed by Pablo Galindo in :issue:`42997`.)
234234
235235
* Unparenthesised tuples in comprehensions targets:
236236
@@ -242,7 +242,7 @@ have been incorporated. Some of the most notable ones are as follows:
242242
^
243243
SyntaxError: did you forget parentheses around the comprehension target?
244244
245-
(Contributed by Pablo Galindo in :issue:`43017`)
245+
(Contributed by Pablo Galindo in :issue:`43017`.)
246246
247247
* Missing commas in collection literals and between expressions:
248248
@@ -257,7 +257,7 @@ have been incorporated. Some of the most notable ones are as follows:
257257
^
258258
SyntaxError: invalid syntax. Perhaps you forgot a comma?
259259
260-
(Contributed by Pablo Galindo in :issue:`43822`)
260+
(Contributed by Pablo Galindo in :issue:`43822`.)
261261
262262
* Multiple Exception types without parentheses:
263263
@@ -271,7 +271,7 @@ have been incorporated. Some of the most notable ones are as follows:
271271
^
272272
SyntaxError: multiple exception types must be parenthesized
273273
274-
(Contributed by Pablo Galindo in :issue:`43149`)
274+
(Contributed by Pablo Galindo in :issue:`43149`.)
275275
276276
* Missing ``:`` and values in dictionary literals:
277277
@@ -293,7 +293,7 @@ have been incorporated. Some of the most notable ones are as follows:
293293
^
294294
SyntaxError: ':' expected after dictionary key
295295
296-
(Contributed by Pablo Galindo in :issue:`43823`)
296+
(Contributed by Pablo Galindo in :issue:`43823`.)
297297
298298
* ``try`` blocks without ``except`` or ``finally`` blocks:
299299
@@ -307,7 +307,7 @@ have been incorporated. Some of the most notable ones are as follows:
307307
^^^^^^^^^
308308
SyntaxError: expected 'except' or 'finally' block
309309
310-
(Contributed by Pablo Galindo in :issue:`44305`)
310+
(Contributed by Pablo Galindo in :issue:`44305`.)
311311
312312
* Usage of ``=`` instead of ``==`` in comparisons:
313313
@@ -319,7 +319,7 @@ have been incorporated. Some of the most notable ones are as follows:
319319
^
320320
SyntaxError: cannot assign to attribute here. Maybe you meant '==' instead of '='?
321321
322-
(Contributed by Pablo Galindo in :issue:`43797`)
322+
(Contributed by Pablo Galindo in :issue:`43797`.)
323323
324324
* Usage of ``*`` in f-strings:
325325
@@ -331,7 +331,7 @@ have been incorporated. Some of the most notable ones are as follows:
331331
^
332332
SyntaxError: f-string: cannot use starred expression here
333333
334-
(Contributed by Pablo Galindo in :issue:`41064`)
334+
(Contributed by Pablo Galindo in :issue:`41064`.)
335335
336336
IndentationErrors
337337
~~~~~~~~~~~~~~~~~
@@ -1048,7 +1048,7 @@ keyword-only. This will probably be the most common usage:
10481048
10491049
Here, ``z`` and ``t`` are keyword-only parameters, while ``x`` and
10501050
``y`` are not.
1051-
(Contributed by Eric V. Smith in :issue:`43532`)
1051+
(Contributed by Eric V. Smith in :issue:`43532`.)
10521052
10531053
.. _distutils-deprecated:
10541054
@@ -1255,11 +1255,11 @@ pathlib
12551255
-------
12561256
12571257
Add slice support to :attr:`PurePath.parents <pathlib.PurePath.parents>`.
1258-
(Contributed by Joshua Cannon in :issue:`35498`)
1258+
(Contributed by Joshua Cannon in :issue:`35498`.)
12591259
12601260
Add negative indexing support to :attr:`PurePath.parents
12611261
<pathlib.PurePath.parents>`.
1262-
(Contributed by Yaroslav Pankovych in :issue:`21041`)
1262+
(Contributed by Yaroslav Pankovych in :issue:`21041`.)
12631263
12641264
Add :meth:`Path.hardlink_to <pathlib.Path.hardlink_to>` method that
12651265
supersedes :meth:`~pathlib.Path.link_to`. The new method has the same argument
@@ -1277,7 +1277,7 @@ platform
12771277
Add :func:`platform.freedesktop_os_release()` to retrieve operation system
12781278
identification from `freedesktop.org os-release
12791279
<https://www.freedesktop.org/software/systemd/man/os-release.html>`_ standard file.
1280-
(Contributed by Christian Heimes in :issue:`28468`)
1280+
(Contributed by Christian Heimes in :issue:`28468`.)
12811281
12821282
pprint
12831283
------
@@ -1462,22 +1462,22 @@ and to match the behavior of static type checkers specified in the PEP.
14621462
14631463
Add new function :func:`typing.is_typeddict` to introspect if an annotation
14641464
is a :class:`typing.TypedDict`.
1465-
(Contributed by Patrick Reader in :issue:`41792`)
1465+
(Contributed by Patrick Reader in :issue:`41792`.)
14661466
14671467
Subclasses of ``typing.Protocol`` which only have data variables declared
14681468
will now raise a ``TypeError`` when checked with ``isinstance`` unless they
14691469
are decorated with :func:`runtime_checkable`. Previously, these checks
14701470
passed silently. Users should decorate their
14711471
subclasses with the :func:`runtime_checkable` decorator
14721472
if they want runtime protocols.
1473-
(Contributed by Yurii Karabas in :issue:`38908`)
1473+
(Contributed by Yurii Karabas in :issue:`38908`.)
14741474
14751475
Importing from the ``typing.io`` and ``typing.re`` submodules will now emit
14761476
:exc:`DeprecationWarning`. These submodules have been deprecated since
14771477
Python 3.8 and will be removed in a future version of Python. Anything
14781478
belonging to those submodules should be imported directly from
14791479
:mod:`typing` instead.
1480-
(Contributed by Sebastian Rittau in :issue:`38291`)
1480+
(Contributed by Sebastian Rittau in :issue:`38291`.)
14811481
14821482
unittest
14831483
--------
@@ -1562,7 +1562,7 @@ Optimizations
15621562
strings, and the function object lazily converts this into the annotations dict
15631563
on demand. This optimization cuts the CPU time needed to define an annotated
15641564
function by half.
1565-
(Contributed by Yurii Karabas and Inada Naoki in :issue:`42202`)
1565+
(Contributed by Yurii Karabas and Inada Naoki in :issue:`42202`.)
15661566
15671567
* Substring search functions such as ``str1 in str2`` and ``str2.find(str1)``
15681568
now sometimes use Crochemore & Perrin's "Two-Way" string searching
@@ -1571,16 +1571,16 @@ Optimizations
15711571
15721572
* Add micro-optimizations to ``_PyType_Lookup()`` to improve type attribute cache lookup
15731573
performance in the common case of cache hits. This makes the interpreter 1.04 times faster
1574-
on average. (Contributed by Dino Viehland in :issue:`43452`)
1574+
on average. (Contributed by Dino Viehland in :issue:`43452`.)
15751575
15761576
* The following built-in functions now support the faster :pep:`590` vectorcall calling convention:
15771577
:func:`map`, :func:`filter`, :func:`reversed`, :func:`bool` and :func:`float`.
1578-
(Contributed by Dong-hee Na and Jeroen Demeyer in :issue:`43575`, :issue:`43287`, :issue:`41922`, :issue:`41873` and :issue:`41870`)
1578+
(Contributed by Dong-hee Na and Jeroen Demeyer in :issue:`43575`, :issue:`43287`, :issue:`41922`, :issue:`41873` and :issue:`41870`.)
15791579
15801580
* :class:`BZ2File` performance is improved by removing internal ``RLock``.
15811581
This makes :class:`BZ2File` thread unsafe in the face of multiple simultaneous
15821582
readers or writers, just like its equivalent classes in :mod:`gzip` and
1583-
:mod:`lzma` have always been. (Contributed by Inada Naoki in :issue:`43785`).
1583+
:mod:`lzma` have always been. (Contributed by Inada Naoki in :issue:`43785`.)
15841584
15851585
.. _whatsnew310-deprecated:
15861586
@@ -1596,7 +1596,7 @@ Deprecated
15961596
:keyword:`for`, :keyword:`if`, :keyword:`in`, :keyword:`is` and :keyword:`or`.
15971597
In future releases it will be changed to syntax warning, and finally to
15981598
syntax error.
1599-
(Contributed by Serhiy Storchaka in :issue:`43833`).
1599+
(Contributed by Serhiy Storchaka in :issue:`43833`.)
16001600
16011601
* Starting in this release, there will be a concerted effort to begin
16021602
cleaning up old import semantics that were kept for Python 2.7
@@ -1784,7 +1784,7 @@ Deprecated
17841784
:exc:`DeprecationWarning`. These submodules will be removed in a future version
17851785
of Python. Anything belonging to these submodules should be imported directly
17861786
from :mod:`typing` instead.
1787-
(Contributed by Sebastian Rittau in :issue:`38291`)
1787+
(Contributed by Sebastian Rittau in :issue:`38291`.)
17881788
17891789
.. _whatsnew310-removed:
17901790
@@ -1867,7 +1867,7 @@ Changes in the Python syntax
18671867
syntax error. To get rid of the warning and make the code compatible with
18681868
future releases just add a space between the numeric literal and the
18691869
following keyword.
1870-
(Contributed by Serhiy Storchaka in :issue:`43833`).
1870+
(Contributed by Serhiy Storchaka in :issue:`43833`.)
18711871
18721872
.. _changes-python-api:
18731873
@@ -1977,7 +1977,7 @@ CPython bytecode changes
19771977
19781978
* The ``MAKE_FUNCTION`` instruction now accepts either a dict or a tuple of
19791979
strings as the function's annotations.
1980-
(Contributed by Yurii Karabas and Inada Naoki in :issue:`42202`)
1980+
(Contributed by Yurii Karabas and Inada Naoki in :issue:`42202`.)
19811981
19821982
Build Changes
19831983
=============
@@ -2193,7 +2193,7 @@ Porting to Python 3.10
21932193
directory. These files must not be included directly, as they are already
21942194
included in ``Python.h``: :ref:`Include Files <api-includes>`. If they have
21952195
been included directly, consider including ``Python.h`` instead.
2196-
(Contributed by Nicholas Sim in :issue:`35134`)
2196+
(Contributed by Nicholas Sim in :issue:`35134`.)
21972197
21982198
* Use the :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag to create immutable type
21992199
objects. Do not rely on :c:data:`Py_TPFLAGS_HEAPTYPE` to decide if a type
@@ -2203,7 +2203,7 @@ Porting to Python 3.10
22032203
22042204
* The undocumented function ``Py_FrozenMain`` has been removed from the
22052205
limited API. The function is mainly useful for custom builds of Python.
2206-
(Contributed by Petr Viktorin in :issue:`26241`)
2206+
(Contributed by Petr Viktorin in :issue:`26241`.)
22072207
22082208
Deprecated
22092209
----------

0 commit comments

Comments
 (0)