@@ -183,7 +183,7 @@ keywords, the parameters names remain available for use in ``**kwargs``::
183
183
184
184
This greatly simplifies the implementation of functions and methods
185
185
that need to accept arbitrary keyword arguments. For example, here
186
- is an except from code in the :mod: `collections ` module::
186
+ is an excerpt from code in the :mod: `collections ` module::
187
187
188
188
class Counter(dict):
189
189
@@ -215,7 +215,7 @@ subdirectories).
215
215
Debug build uses the same ABI as release build
216
216
-----------------------------------------------
217
217
218
- Python now uses the same ABI whether it built in release or debug mode. On
218
+ Python now uses the same ABI whether it's built in release or debug mode. On
219
219
Unix, when Python is built in debug mode, it is now possible to load C
220
220
extensions built in release mode and C extensions built using the stable ABI.
221
221
@@ -567,7 +567,7 @@ The :func:`ast.parse` function has some new flags:
567
567
comments" (returned for function definition AST nodes);
568
568
569
569
* ``feature_version=(3, N) `` allows specifying an earlier Python 3
570
- version. (For example, ``feature_version=(3, 4) `` will treat
570
+ version. (For example, ``feature_version=(3, 4) `` will treat
571
571
``async `` and ``await `` as non-reserved words.)
572
572
573
573
New function :func: `ast.get_source_segment ` returns the source code
@@ -1284,7 +1284,7 @@ Build and C API Changes
1284
1284
without calling functions. This API is now installed by ``make install ``.
1285
1285
1286
1286
(Contributed by Victor Stinner in :issue: `35134 ` and :issue: `35081 `,
1287
- work initiated by Eric Snow in Python 3.7)
1287
+ work initiated by Eric Snow in Python 3.7. )
1288
1288
1289
1289
* Some macros have been converted to static inline functions: parameter types
1290
1290
and return type are well defined, they don't have issues specific to macros,
@@ -1378,12 +1378,11 @@ Deprecated
1378
1378
1379
1379
Implementations of these methods have been ignoring their *index * parameter,
1380
1380
and returning the next item instead.
1381
-
1382
1381
(Contributed by Berker Peksag in :issue: `9372 `.)
1383
1382
1384
1383
* The :class: `typing.NamedTuple ` class has deprecated the ``_field_types ``
1385
1384
attribute in favor of the ``__annotations__ `` attribute which has the same
1386
- information. (Contributed by Raymond Hettinger in :issue: `36320 `.)
1385
+ information. (Contributed by Raymond Hettinger in :issue: `36320 `.)
1387
1386
1388
1387
* :mod: `ast ` classes ``Num ``, ``Str ``, ``Bytes ``, ``NameConstant `` and
1389
1388
``Ellipsis `` are considered deprecated and will be removed in future Python
@@ -1411,7 +1410,6 @@ Deprecated
1411
1410
parameter of functions :func: `~gettext.translation ` and
1412
1411
:func: `~gettext.install ` are also deprecated, since they are only used for
1413
1412
for the ``l*gettext() `` functions.
1414
-
1415
1413
(Contributed by Serhiy Storchaka in :issue: `33710 `.)
1416
1414
1417
1415
* The :meth: `~threading.Thread.isAlive() ` method of :class: `threading.Thread ` has been deprecated.
@@ -1493,11 +1491,11 @@ The following features and APIs have been removed from Python 3.8:
1493
1491
1494
1492
* The ``bufsize `` keyword argument of :func: `fileinput.input ` and
1495
1493
:func: `fileinput.FileInput ` which was ignored and deprecated since Python 3.6
1496
- has been removed. :issue: `36952 ` (Contributed by Matthias Bussonnier)
1494
+ has been removed. :issue: `36952 ` (Contributed by Matthias Bussonnier. )
1497
1495
1498
1496
* The functions :func: `sys.set_coroutine_wrapper ` and
1499
1497
:func: `sys.get_coroutine_wrapper ` deprecated in Python 3.7 have been removed;
1500
- :issue: `36933 ` (Contributed by Matthias Bussonnier)
1498
+ :issue: `36933 ` (Contributed by Matthias Bussonnier. )
1501
1499
1502
1500
1503
1501
Porting to Python 3.8
@@ -1523,9 +1521,9 @@ Changes in Python behavior
1523
1521
(Contributed by Serhiy Storchaka in :issue: `34850 `.)
1524
1522
1525
1523
* The CPython interpreter can swallow exceptions in some circumstances.
1526
- In Python 3.8 this happens in less cases. In particular, exceptions
1524
+ In Python 3.8 this happens in fewer cases. In particular, exceptions
1527
1525
raised when getting the attribute from the type dictionary are no longer
1528
- ignored. (Contributed by Serhiy Storchaka in :issue: `35459 `.)
1526
+ ignored. (Contributed by Serhiy Storchaka in :issue: `35459 `.)
1529
1527
1530
1528
* Removed ``__str__ `` implementations from builtin types :class: `bool `,
1531
1529
:class: `int `, :class: `float `, :class: `complex ` and few classes from
@@ -1620,7 +1618,7 @@ Changes in the Python API
1620
1618
16 KiB to 1 MiB.
1621
1619
1622
1620
* The ``PyGC_Head `` struct has changed completely. All code that touched the
1623
- struct member should be rewritten. (See :issue: `33597 `)
1621
+ struct member should be rewritten. (See :issue: `33597 `. )
1624
1622
1625
1623
* The ``PyInterpreterState `` struct has been moved into the "internal"
1626
1624
header files (specifically Include/internal/pycore_pystate.h). An
0 commit comments