@@ -81,13 +81,13 @@ Interpreter improvements:
81
81
* a number of Python builtins (range, tuple, set, frozenset, list, dict) are
82
82
now sped up using :pep: `590 ` vectorcall;
83
83
* garbage collection does not block on resurrected objects;
84
- * a number of Python modules (:mod: `_abc `, :mod: `audioop `, :mod: `_bz2 `,
85
- :mod: `_codecs `, :mod: `_contextvars `, :mod: `_crypt `, :mod: `_functools `,
86
- :mod: `_json `, :mod: `_locale `, :mod: `math `, :mod: `operator `, :mod: `resource `,
87
- :mod: `time `, :mod: `_weakref `) now use multiphase initialization as defined
84
+ * a number of Python modules (:mod: `! _abc `, :mod: `audioop `, :mod: `! _bz2 `,
85
+ :mod: `! _codecs `, :mod: `! _contextvars `, :mod: `! _crypt `, :mod: `! _functools `,
86
+ :mod: `! _json `, :mod: `! _locale `, :mod: `math `, :mod: `operator `, :mod: `resource `,
87
+ :mod: `time `, :mod: `! _weakref `) now use multiphase initialization as defined
88
88
by PEP 489;
89
89
* a number of standard library modules (:mod: `audioop `, :mod: `ast `, :mod: `grp `,
90
- :mod: `_hashlib `, :mod: `pwd `, :mod: `_posixsubprocess `, :mod: `random `,
90
+ :mod: `! _hashlib `, :mod: `pwd `, :mod: `! _posixsubprocess `, :mod: `random `,
91
91
:mod: `select `, :mod: `struct `, :mod: `termios `, :mod: `zlib `) are now using
92
92
the stable ABI defined by PEP 384.
93
93
@@ -203,7 +203,7 @@ The :mod:`ast` module uses the new parser and produces the same AST as
203
203
the old parser.
204
204
205
205
In Python 3.10, the old parser will be deleted and so will all
206
- functionality that depends on it (primarily the :mod: `parser ` module,
206
+ functionality that depends on it (primarily the :mod: `! parser ` module,
207
207
which has long been deprecated). In Python 3.9 *only *, you can switch
208
208
back to the LL(1) parser using a command line switch (``-X
209
209
oldparser ``) or an environment variable (``PYTHONOLDPARSER=1 ``).
@@ -366,7 +366,7 @@ wait until the cancellation is complete also in the case when *timeout* is
366
366
<= 0, like it does with positive timeouts.
367
367
(Contributed by Elvis Pranskevichus in :issue: `32751 `.)
368
368
369
- :mod: `asyncio ` now raises :exc: `TyperError ` when calling incompatible
369
+ :mod: `asyncio ` now raises :exc: `TypeError ` when calling incompatible
370
370
methods with an :class: `ssl.SSLSocket ` socket.
371
371
(Contributed by Ido Michael in :issue: `37404 `.)
372
372
@@ -589,7 +589,7 @@ a non-blocking socket. (Contributed by Donghee Na in :issue:`39259`.)
589
589
os
590
590
--
591
591
592
- Added :const: `~os.CLD_KILLED ` and :const: `~os.CLD_STOPPED ` for :attr: `si_code `.
592
+ Added :const: `~os.CLD_KILLED ` and :const: `~os.CLD_STOPPED ` for :attr: `! si_code `.
593
593
(Contributed by Donghee Na in :issue: `38493 `.)
594
594
595
595
Exposed the Linux-specific :func: `os.pidfd_open ` (:issue: `38692 `) and
@@ -861,7 +861,7 @@ Deprecated
861
861
Python versions it will raise a :exc: `TypeError ` for all floats.
862
862
(Contributed by Serhiy Storchaka in :issue: `37315 `.)
863
863
864
- * The :mod: `parser ` and :mod: `symbol ` modules are deprecated and will be
864
+ * The :mod: `! parser ` and :mod: `! symbol ` modules are deprecated and will be
865
865
removed in future versions of Python. For the majority of use cases,
866
866
users can leverage the Abstract Syntax Tree (AST) generation and compilation
867
867
stage, using the :mod: `ast ` module.
@@ -889,7 +889,7 @@ Deprecated
889
889
it for writing and silencing a warning.
890
890
(Contributed by Serhiy Storchaka in :issue: `28286 `.)
891
891
892
- * Deprecated the ``split() `` method of :class: `_tkinter.TkappType ` in
892
+ * Deprecated the ``split() `` method of :class: `! _tkinter.TkappType ` in
893
893
favour of the ``splitlist() `` method which has more consistent and
894
894
predicable behavior.
895
895
(Contributed by Serhiy Storchaka in :issue: `38371 `.)
@@ -898,11 +898,11 @@ Deprecated
898
898
deprecated and will be removed in version 3.11.
899
899
(Contributed by Yury Selivanov and Kyle Stanley in :issue: `34790 `.)
900
900
901
- * binhex4 and hexbin4 standards are now deprecated. The :mod: `binhex ` module
901
+ * binhex4 and hexbin4 standards are now deprecated. The :mod: `! binhex ` module
902
902
and the following :mod: `binascii ` functions are now deprecated:
903
903
904
- * :func: `~binascii. b2a_hqx `, :func: `~binascii. a2b_hqx `
905
- * :func: `~binascii. rlecode_hqx `, :func: `~binascii. rledecode_hqx `
904
+ * :func: `! b2a_hqx `, :func: `! a2b_hqx `
905
+ * :func: `! rlecode_hqx `, :func: `! rledecode_hqx `
906
906
907
907
(Contributed by Victor Stinner in :issue: `39353 `.)
908
908
@@ -950,7 +950,7 @@ Deprecated
950
950
Removed
951
951
=======
952
952
953
- * The erroneous version at :data: `unittest.mock.__version__ ` has been removed.
953
+ * The erroneous version at :data: `! unittest.mock.__version__ ` has been removed.
954
954
955
955
* :class: `nntplib.NNTP `: ``xpath() `` and ``xgtitle() `` methods have been removed.
956
956
These methods are deprecated since Python 3.3. Generally, these extensions
@@ -987,7 +987,7 @@ Removed
987
987
removed. They were deprecated since Python 3.7.
988
988
(Contributed by Victor Stinner in :issue: `37320 `.)
989
989
990
- * The :meth: `~threading.Thread. isAlive() ` method of :class: `threading.Thread `
990
+ * The :meth: `! isAlive() ` method of :class: `threading.Thread `
991
991
has been removed. It was deprecated since Python 3.8.
992
992
Use :meth: `~threading.Thread.is_alive() ` instead.
993
993
(Contributed by Donghee Na in :issue: `37804 `.)
@@ -1035,7 +1035,7 @@ Removed
1035
1035
``asyncio.Condition `` and ``asyncio.Semaphore ``.
1036
1036
(Contributed by Andrew Svetlov in :issue: `34793 `.)
1037
1037
1038
- * The :func: `sys.getcounts ` function, the ``-X showalloccount `` command line
1038
+ * The :func: `! sys.getcounts ` function, the ``-X showalloccount `` command line
1039
1039
option and the ``show_alloc_count `` field of the C structure
1040
1040
:c:type: `PyConfig ` have been removed. They required a special Python build by
1041
1041
defining ``COUNT_ALLOCS `` macro.
@@ -1046,11 +1046,11 @@ Removed
1046
1046
the ``__annotations__ `` attribute instead.
1047
1047
(Contributed by Serhiy Storchaka in :issue: `40182 `.)
1048
1048
1049
- * The :meth: `symtable.SymbolTable.has_exec ` method has been removed. It was
1049
+ * The :meth: `! symtable.SymbolTable.has_exec ` method has been removed. It was
1050
1050
deprecated since 2006, and only returning ``False `` when it's called.
1051
1051
(Contributed by Batuhan Taskaya in :issue: `40208 `)
1052
1052
1053
- * The :meth: `asyncio.Task.current_task ` and :meth: `asyncio.Task.all_tasks `
1053
+ * The :meth: `! asyncio.Task.current_task ` and :meth: `! asyncio.Task.all_tasks `
1054
1054
have been removed. They were deprecated since Python 3.7 and you can use
1055
1055
:func: `asyncio.current_task ` and :func: `asyncio.all_tasks ` instead.
1056
1056
(Contributed by Rémi Lapeyre in :issue: `40967 `)
@@ -1230,7 +1230,7 @@ Build Changes
1230
1230
* The ``COUNT_ALLOCS `` special build macro has been removed.
1231
1231
(Contributed by Victor Stinner in :issue: `39489 `.)
1232
1232
1233
- * On non-Windows platforms, the :c:func: `setenv ` and :c:func: `unsetenv `
1233
+ * On non-Windows platforms, the :c:func: `! setenv ` and :c:func: `! unsetenv `
1234
1234
functions are now required to build Python.
1235
1235
(Contributed by Victor Stinner in :issue: `39395 `.)
1236
1236
@@ -1319,7 +1319,7 @@ New Features
1319
1319
the garbage collector respectively.
1320
1320
(Contributed by Pablo Galindo Salgado in :issue: `40241 `.)
1321
1321
1322
- * Added :c:func: `_PyObject_FunctionStr ` to get a user-friendly string
1322
+ * Added :c:func: `! _PyObject_FunctionStr ` to get a user-friendly string
1323
1323
representation of a function-like object.
1324
1324
(Patch by Jeroen Demeyer in :issue: `37645 `.)
1325
1325
@@ -1361,7 +1361,7 @@ Porting to Python 3.9
1361
1361
and refers to a constant string.
1362
1362
(Contributed by Serhiy Storchaka in :issue: `38650 `.)
1363
1363
1364
- * The :c:type: `PyGC_Head ` structure is now opaque. It is only defined in the
1364
+ * The :c:type: `! PyGC_Head ` structure is now opaque. It is only defined in the
1365
1365
internal C API (``pycore_gc.h ``).
1366
1366
(Contributed by Victor Stinner in :issue: `40241 `.)
1367
1367
@@ -1384,12 +1384,12 @@ Porting to Python 3.9
1384
1384
1385
1385
* :c:func: `PyObject_IS_GC ` macro was converted to a function.
1386
1386
1387
- * The :c:func: `PyObject_NEW ` macro becomes an alias to the
1388
- :c:macro: `PyObject_New ` macro, and the :c:func: `PyObject_NEW_VAR ` macro
1387
+ * The :c:func: `! PyObject_NEW ` macro becomes an alias to the
1388
+ :c:macro: `PyObject_New ` macro, and the :c:func: `! PyObject_NEW_VAR ` macro
1389
1389
becomes an alias to the :c:macro: `PyObject_NewVar ` macro. They no longer
1390
1390
access directly the :c:member: `PyTypeObject.tp_basicsize ` member.
1391
1391
1392
- * :c:func: `PyObject_GET_WEAKREFS_LISTPTR ` macro was converted to a function:
1392
+ * :c:func: `! PyObject_GET_WEAKREFS_LISTPTR ` macro was converted to a function:
1393
1393
the macro accessed directly the :c:member: `PyTypeObject.tp_weaklistoffset `
1394
1394
member.
1395
1395
0 commit comments