@@ -230,7 +230,7 @@ have been incorporated. Some of the most notable ones are as follows:
230
230
^
231
231
SyntaxError : expected ' :'
232
232
233
- (Contributed by Pablo Galindo in :issue:`42997 ` )
233
+ (Contributed by Pablo Galindo in :issue:`42997 ` . )
234
234
235
235
* Unparenthesised tuples in comprehensions targets:
236
236
@@ -242,7 +242,7 @@ have been incorporated. Some of the most notable ones are as follows:
242
242
^
243
243
SyntaxError : did you forget parentheses around the comprehension target?
244
244
245
- (Contributed by Pablo Galindo in :issue:`43017 ` )
245
+ (Contributed by Pablo Galindo in :issue:`43017 ` . )
246
246
247
247
* Missing commas in collection literals and between expressions:
248
248
@@ -257,7 +257,7 @@ have been incorporated. Some of the most notable ones are as follows:
257
257
^
258
258
SyntaxError : invalid syntax. Perhaps you forgot a comma?
259
259
260
- (Contributed by Pablo Galindo in :issue:`43822 ` )
260
+ (Contributed by Pablo Galindo in :issue:`43822 ` . )
261
261
262
262
* Multiple Exception types without parentheses:
263
263
@@ -271,7 +271,7 @@ have been incorporated. Some of the most notable ones are as follows:
271
271
^
272
272
SyntaxError : multiple exception types must be parenthesized
273
273
274
- (Contributed by Pablo Galindo in :issue:`43149 ` )
274
+ (Contributed by Pablo Galindo in :issue:`43149 ` . )
275
275
276
276
* Missing `` :`` and values in dictionary literals:
277
277
@@ -293,7 +293,7 @@ have been incorporated. Some of the most notable ones are as follows:
293
293
^
294
294
SyntaxError : ' :' expected after dictionary key
295
295
296
- (Contributed by Pablo Galindo in :issue:`43823 ` )
296
+ (Contributed by Pablo Galindo in :issue:`43823 ` . )
297
297
298
298
* `` try `` blocks without `` except `` or `` finally `` blocks:
299
299
@@ -307,7 +307,7 @@ have been incorporated. Some of the most notable ones are as follows:
307
307
^^^^^^^^^
308
308
SyntaxError : expected ' except' or ' finally' block
309
309
310
- (Contributed by Pablo Galindo in :issue:`44305 ` )
310
+ (Contributed by Pablo Galindo in :issue:`44305 ` . )
311
311
312
312
* Usage of `` =`` instead of `` == `` in comparisons:
313
313
@@ -319,7 +319,7 @@ have been incorporated. Some of the most notable ones are as follows:
319
319
^
320
320
SyntaxError : cannot assign to attribute here. Maybe you meant ' ==' instead of ' =' ?
321
321
322
- (Contributed by Pablo Galindo in :issue:`43797 ` )
322
+ (Contributed by Pablo Galindo in :issue:`43797 ` . )
323
323
324
324
* Usage of `` * `` in f- strings:
325
325
@@ -331,7 +331,7 @@ have been incorporated. Some of the most notable ones are as follows:
331
331
^
332
332
SyntaxError : f- string: cannot use starred expression here
333
333
334
- (Contributed by Pablo Galindo in :issue:`41064 ` )
334
+ (Contributed by Pablo Galindo in :issue:`41064 ` . )
335
335
336
336
IndentationErrors
337
337
~~~~~~~~~~~~~~~~~
@@ -1048,7 +1048,7 @@ keyword-only. This will probably be the most common usage:
1048
1048
1049
1049
Here, `` z`` and `` t`` are keyword- only parameters, while `` x`` and
1050
1050
`` y`` are not .
1051
- (Contributed by Eric V. Smith in :issue:`43532 ` )
1051
+ (Contributed by Eric V. Smith in :issue:`43532 ` . )
1052
1052
1053
1053
.. _distutils- deprecated:
1054
1054
@@ -1266,11 +1266,11 @@ pathlib
1266
1266
------ -
1267
1267
1268
1268
Add slice support to :attr:`PurePath.parents < pathlib.PurePath.parents> ` .
1269
- (Contributed by Joshua Cannon in :issue:`35498 ` )
1269
+ (Contributed by Joshua Cannon in :issue:`35498 ` . )
1270
1270
1271
1271
Add negative indexing support to :attr:`PurePath.parents
1272
1272
< pathlib.PurePath.parents> `.
1273
- (Contributed by Yaroslav Pankovych in :issue:`21041 ` )
1273
+ (Contributed by Yaroslav Pankovych in :issue:`21041 ` . )
1274
1274
1275
1275
Add :meth:`Path.hardlink_to < pathlib.Path.hardlink_to> ` method that
1276
1276
supersedes :meth:`~ pathlib.Path.link_to` . The new method has the same argument
@@ -1288,7 +1288,7 @@ platform
1288
1288
Add :func:`platform.freedesktop_os_release()` to retrieve operation system
1289
1289
identification from `freedesktop.org os- release
1290
1290
< https:// www.freedesktop.org/ software/ systemd/ man/ os- release.html> `_ standard file .
1291
- (Contributed by Christian Heimes in :issue:`28468 ` )
1291
+ (Contributed by Christian Heimes in :issue:`28468 ` . )
1292
1292
1293
1293
pprint
1294
1294
------
@@ -1473,22 +1473,22 @@ and to match the behavior of static type checkers specified in the PEP.
1473
1473
1474
1474
Add new function :func:`typing.is_typeddict` to introspect if an annotation
1475
1475
is a :class :`typing.TypedDict` .
1476
- (Contributed by Patrick Reader in :issue:`41792 ` )
1476
+ (Contributed by Patrick Reader in :issue:`41792 ` . )
1477
1477
1478
1478
Subclasses of `` typing.Protocol`` which only have data variables declared
1479
1479
will now raise a `` TypeError `` when checked with `` isinstance `` unless they
1480
1480
are decorated with :func:`runtime_checkable` . Previously, these checks
1481
1481
passed silently. Users should decorate their
1482
1482
subclasses with the :func:`runtime_checkable` decorator
1483
1483
if they want runtime protocols.
1484
- (Contributed by Yurii Karabas in :issue:`38908 ` )
1484
+ (Contributed by Yurii Karabas in :issue:`38908 ` . )
1485
1485
1486
1486
Importing from the `` typing.io`` and `` typing.re`` submodules will now emit
1487
1487
:exc:`DeprecationWarning ` . These submodules have been deprecated since
1488
1488
Python 3.8 and will be removed in a future version of Python. Anything
1489
1489
belonging to those submodules should be imported directly from
1490
1490
:mod:`typing` instead.
1491
- (Contributed by Sebastian Rittau in :issue:`38291 ` )
1491
+ (Contributed by Sebastian Rittau in :issue:`38291 ` . )
1492
1492
1493
1493
unittest
1494
1494
--------
@@ -1566,7 +1566,7 @@ Optimizations
1566
1566
strings, and the function object lazily converts this into the annotations dict
1567
1567
on demand. This optimization cuts the CPU time needed to define an annotated
1568
1568
function by half.
1569
- (Contributed by Yurii Karabas and Inada Naoki in :issue:`42202 ` )
1569
+ (Contributed by Yurii Karabas and Inada Naoki in :issue:`42202 ` . )
1570
1570
1571
1571
* Substring search functions such as `` str1 in str2`` and `` str2.find(str1)``
1572
1572
now sometimes use Crochemore & Perrin' s "Two-Way" string searching
@@ -1575,16 +1575,16 @@ Optimizations
1575
1575
1576
1576
* Add micro- optimizations to `` _PyType_Lookup()`` to improve type attribute cache lookup
1577
1577
performance in the common case of cache hits. This makes the interpreter 1.04 times faster
1578
- on average. (Contributed by Dino Viehland in :issue:`43452 ` )
1578
+ on average. (Contributed by Dino Viehland in :issue:`43452 ` . )
1579
1579
1580
1580
* The following built- in functions now support the faster :pep:`590 ` vectorcall calling convention:
1581
1581
:func:`map ` , :func:`filter ` , :func:`reversed ` , :func:`bool ` and :func:`float ` .
1582
- (Contributed by Dong- hee Na and Jeroen Demeyer in :issue:`43575 ` , :issue:`43287 ` , :issue:`41922 ` , :issue:`41873 ` and :issue:`41870 ` )
1582
+ (Contributed by Dong- hee Na and Jeroen Demeyer in :issue:`43575 ` , :issue:`43287 ` , :issue:`41922 ` , :issue:`41873 ` and :issue:`41870 ` . )
1583
1583
1584
1584
* :class :`BZ2File` performance is improved by removing internal `` RLock`` .
1585
1585
This makes :class :`BZ2File` thread unsafe in the face of multiple simultaneous
1586
1586
readers or writers, just like its equivalent classes in :mod:`gzip` and
1587
- :mod:`lzma` have always been. (Contributed by Inada Naoki in :issue:`43785 ` ).
1587
+ :mod:`lzma` have always been. (Contributed by Inada Naoki in :issue:`43785 ` .)
1588
1588
1589
1589
.. _whatsnew310- deprecated:
1590
1590
@@ -1600,7 +1600,7 @@ Deprecated
1600
1600
:keyword:`for `, :keyword:` if `, :keyword:` in ` , :keyword:`is ` and :keyword:`or ` .
1601
1601
In future releases it will be changed to syntax warning, and finally to
1602
1602
syntax error.
1603
- (Contributed by Serhiy Storchaka in :issue:`43833 ` ).
1603
+ (Contributed by Serhiy Storchaka in :issue:`43833 ` .)
1604
1604
1605
1605
* Starting in this release, there will be a concerted effort to begin
1606
1606
cleaning up old import semantics that were kept for Python 2.7
@@ -1788,7 +1788,7 @@ Deprecated
1788
1788
:exc:`DeprecationWarning ` . These submodules will be removed in a future version
1789
1789
of Python. Anything belonging to these submodules should be imported directly
1790
1790
from :mod:`typing` instead.
1791
- (Contributed by Sebastian Rittau in :issue:`38291 ` )
1791
+ (Contributed by Sebastian Rittau in :issue:`38291 ` . )
1792
1792
1793
1793
.. _whatsnew310- removed:
1794
1794
@@ -1871,7 +1871,7 @@ Changes in the Python syntax
1871
1871
syntax error. To get rid of the warning and make the code compatible with
1872
1872
future releases just add a space between the numeric literal and the
1873
1873
following keyword.
1874
- (Contributed by Serhiy Storchaka in :issue:`43833 ` ).
1874
+ (Contributed by Serhiy Storchaka in :issue:`43833 ` .)
1875
1875
1876
1876
.. _changes- python- api:
1877
1877
@@ -1981,7 +1981,7 @@ CPython bytecode changes
1981
1981
1982
1982
* The `` MAKE_FUNCTION `` instruction now accepts either a dict or a tuple of
1983
1983
strings as the function' s annotations.
1984
- (Contributed by Yurii Karabas and Inada Naoki in :issue:`42202 ` )
1984
+ (Contributed by Yurii Karabas and Inada Naoki in :issue:`42202 ` . )
1985
1985
1986
1986
Build Changes
1987
1987
============ =
@@ -2197,7 +2197,7 @@ Porting to Python 3.10
2197
2197
directory. These files must not be included directly, as they are already
2198
2198
included in `` Python.h`` : :ref:`Include Files < api- includes> ` . If they have
2199
2199
been included directly, consider including `` Python.h`` instead.
2200
- (Contributed by Nicholas Sim in :issue:`35134 ` )
2200
+ (Contributed by Nicholas Sim in :issue:`35134 ` . )
2201
2201
2202
2202
* Use the :c:data:`Py_TPFLAGS_IMMUTABLETYPE` type flag to create immutable type
2203
2203
objects. Do not rely on :c:data:`Py_TPFLAGS_HEAPTYPE` to decide if a type
@@ -2207,7 +2207,7 @@ Porting to Python 3.10
2207
2207
2208
2208
* The undocumented function `` Py_FrozenMain`` has been removed from the
2209
2209
limited API . The function is mainly useful for custom builds of Python.
2210
- (Contributed by Petr Viktorin in :issue:`26241 ` )
2210
+ (Contributed by Petr Viktorin in :issue:`26241 ` . )
2211
2211
2212
2212
Deprecated
2213
2213
----------
0 commit comments