@@ -248,7 +248,7 @@ inspect
248
248
-------
249
249
250
250
* Add :func: `inspect.markcoroutinefunction ` to mark sync functions that return
251
- a :term: `coroutine ` for use with :func: `iscoroutinefunction `.
251
+ a :term: `coroutine ` for use with :func: `inspect. iscoroutinefunction `.
252
252
(Contributed Carlton Gibson in :gh: `99247 `.)
253
253
254
254
* Add :func: `inspect.getasyncgenstate ` and :func: `inspect.getasyncgenlocals `
277
277
* Pseudo instruction opcodes (which are used by the compiler but
278
278
do not appear in executable bytecode) are now exposed in the
279
279
:mod: `dis ` module.
280
- :data: ` ~dis. HAVE_ARGUMENT ` is still relevant to real opcodes,
280
+ :opcode: ` HAVE_ARGUMENT ` is still relevant to real opcodes,
281
281
but it is not useful for pseudo instructions. Use the new
282
282
:data: `~dis.hasarg ` collection instead.
283
283
(Contributed by Irit Katriel in :gh: `94216 `.)
@@ -422,7 +422,7 @@ Optimizations
422
422
(Contributed by Kevin Modzelewski in :gh: `90536 `.)
423
423
424
424
* Speed up the regular expression substitution (functions :func: `re.sub ` and
425
- :func: `re.subn ` and corresponding :class: `re.Pattern ` methods) for
425
+ :func: `re.subn ` and corresponding :class: `! re.Pattern ` methods) for
426
426
replacement strings containing group references by 2--3 times.
427
427
(Contributed by Serhiy Storchaka in :gh: `91524 `.)
428
428
@@ -435,7 +435,7 @@ CPython bytecode changes
435
435
:opcode: `LOAD_METHOD ` instruction if the low bit of its oparg is set.
436
436
(Contributed by Ken Jin in :gh: `93429 `.)
437
437
438
- * Removed the :opcode: `JUMP_IF_FALSE_OR_POP ` and :opcode: `JUMP_IF_TRUE_OR_POP `
438
+ * Removed the :opcode: `! JUMP_IF_FALSE_OR_POP ` and :opcode: `! JUMP_IF_TRUE_OR_POP `
439
439
instructions. (Contributed by Irit Katriel in :gh: `102859 `.)
440
440
441
441
@@ -482,7 +482,7 @@ Deprecated
482
482
:exc: `ImportWarning `).
483
483
(Contributed by Brett Cannon in :gh: `65961 `.)
484
484
485
- * The :meth: `~asyncio.DefaultEventLoopPolicy. get_event_loop ` method of the
485
+ * The :meth: `~asyncio.get_event_loop ` method of the
486
486
default event loop policy now emits a :exc: `DeprecationWarning ` if there
487
487
is no current event loop set and it decides to create one.
488
488
(Contributed by Serhiy Storchaka and Guido van Rossum in :gh: `100160 `.)
@@ -541,23 +541,23 @@ Modules (see :pep:`594`):
541
541
542
542
APIs:
543
543
544
- * :class: `configparser.LegacyInterpolation ` (:gh: `90765 `)
544
+ * :class: `! configparser.LegacyInterpolation ` (:gh: `90765 `)
545
545
* :func: `locale.getdefaultlocale ` (:gh: `90817 `)
546
- * :meth: `turtle.RawTurtle.settiltangle ` (:gh: `50096 `)
547
- * :func: `unittest.findTestCases ` (:gh: `50096 `)
548
- * :func: `unittest.makeSuite ` (:gh: `50096 `)
549
- * :func: `unittest.getTestCaseNames ` (:gh: `50096 `)
550
- * :class: `webbrowser.MacOSX ` (:gh: `86421 `)
546
+ * :meth: `! turtle.RawTurtle.settiltangle ` (:gh: `50096 `)
547
+ * :func: `! unittest.findTestCases ` (:gh: `50096 `)
548
+ * :func: `! unittest.makeSuite ` (:gh: `50096 `)
549
+ * :func: `! unittest.getTestCaseNames ` (:gh: `50096 `)
550
+ * :class: `! webbrowser.MacOSX ` (:gh: `86421 `)
551
551
552
552
Pending Removal in Python 3.14
553
553
------------------------------
554
554
555
555
* Deprecated the following :mod: `importlib.abc ` classes, scheduled for removal in
556
556
Python 3.14:
557
557
558
- * :class: `importlib.abc.ResourceReader `
559
- * :class: `importlib.abc.Traversable `
560
- * :class: `importlib.abc.TraversableResources `
558
+ * :class: `! importlib.abc.ResourceReader `
559
+ * :class: `! importlib.abc.Traversable `
560
+ * :class: `! importlib.abc.TraversableResources `
561
561
562
562
Use :mod: `importlib.resources.abc ` classes instead:
563
563
@@ -566,7 +566,7 @@ Pending Removal in Python 3.14
566
566
567
567
(Contributed by Jason R. Coombs and Hugo van Kemenade in :gh: `93963 `.)
568
568
569
- * Creating :c:data: ` immutable types < Py_TPFLAGS_IMMUTABLETYPE> ` with mutable
569
+ * Creating immutable types ( :data: ` Py_TPFLAGS_IMMUTABLETYPE `) with mutable
570
570
bases using the C API.
571
571
572
572
* Deprecated the *isdst * parameter in :func: `email.utils.localtime `.
@@ -701,11 +701,11 @@ Removed
701
701
702
702
* Remove ``io.OpenWrapper `` and ``_pyio.OpenWrapper ``, deprecated in Python
703
703
3.10: just use :func: `open ` instead. The :func: `open ` (:func: `io.open `)
704
- function is a built-in function. Since Python 3.10, :func: `_pyio.open ` is
704
+ function is a built-in function. Since Python 3.10, :func: `! _pyio.open ` is
705
705
also a static method.
706
706
(Contributed by Victor Stinner in :gh: `94169 `.)
707
707
708
- * Remove the :func: `ssl.RAND_pseudo_bytes ` function, deprecated in Python 3.6:
708
+ * Remove the :func: `! ssl.RAND_pseudo_bytes ` function, deprecated in Python 3.6:
709
709
use :func: `os.urandom ` or :func: `ssl.RAND_bytes ` instead.
710
710
(Contributed by Victor Stinner in :gh: `94199 `.)
711
711
@@ -715,13 +715,13 @@ Removed
715
715
extension if it was not present.
716
716
(Contributed by Victor Stinner in :gh: `94196 `.)
717
717
718
- * Remove the :func: `ssl.match_hostname ` function. The
719
- :func: ` ssl.match_hostname ` was deprecated in Python 3.7. OpenSSL performs
718
+ * Remove the :func: `! ssl.match_hostname ` function.
719
+ It was deprecated in Python 3.7. OpenSSL performs
720
720
hostname matching since Python 3.7, Python no longer uses the
721
- :func: `ssl.match_hostname ` function.
721
+ :func: `! ssl.match_hostname ` function.
722
722
(Contributed by Victor Stinner in :gh: `94199 `.)
723
723
724
- * Remove the :func: `locale.format ` function, deprecated in Python 3.7:
724
+ * Remove the :func: `! locale.format ` function, deprecated in Python 3.7:
725
725
use :func: `locale.format_string ` instead.
726
726
(Contributed by Victor Stinner in :gh: `94226 `.)
727
727
@@ -731,9 +731,9 @@ Removed
731
731
a C implementation of :func: `~hashlib.pbkdf2_hmac() ` which is faster.
732
732
(Contributed by Victor Stinner in :gh: `94199 `.)
733
733
734
- * :mod: `xml.etree `: Remove the ``ElementTree.Element.copy() `` method of the
734
+ * :mod: `xml.etree.ElementTree `: Remove the ``ElementTree.Element.copy() `` method of the
735
735
pure Python implementation, deprecated in Python 3.10, use the
736
- :func: `copy.copy ` function instead. The C implementation of :mod: `xml.etree `
736
+ :func: `copy.copy ` function instead. The C implementation of :mod: `xml.etree.ElementTree `
737
737
has no ``copy() `` method, only a ``__copy__() `` method.
738
738
(Contributed by Victor Stinner in :gh: `94383 `.)
739
739
@@ -742,10 +742,10 @@ Removed
742
742
:pep: `451 ` for the rationale.
743
743
(Contributed by Victor Stinner in :gh: `94379 `.)
744
744
745
- * Remove the :func: `ssl.wrap_socket ` function, deprecated in Python 3.7:
745
+ * Remove the :func: `! ssl.wrap_socket ` function, deprecated in Python 3.7:
746
746
instead, create a :class: `ssl.SSLContext ` object and call its
747
747
:class: `ssl.SSLContext.wrap_socket ` method. Any package that still uses
748
- :func: `ssl.wrap_socket ` is broken and insecure. The function neither sends a
748
+ :func: `! ssl.wrap_socket ` is broken and insecure. The function neither sends a
749
749
SNI TLS extension nor validates server hostname. Code is subject to `CWE-295
750
750
<https://cwe.mitre.org/data/definitions/295.html> `_: Improper Certificate
751
751
Validation.
@@ -912,7 +912,7 @@ New Features
912
912
The :const: `Py_TPFLAGS_HAVE_VECTORCALL ` flag is now removed from a class
913
913
when the class's :py:meth: `~object.__call__ ` method is reassigned.
914
914
This makes vectorcall safe to use with mutable types (i.e. heap types
915
- without the :const: `immutable < Py_TPFLAGS_IMMUTABLETYPE> ` flag ).
915
+ without the immutable flag, :const: `Py_TPFLAGS_IMMUTABLETYPE ` ).
916
916
Mutable types that do not override :c:member: `~PyTypeObject.tp_call ` now
917
917
inherit the ``Py_TPFLAGS_HAVE_VECTORCALL `` flag.
918
918
(Contributed by Petr Viktorin in :gh: `93274 `.)
@@ -945,7 +945,7 @@ New Features
945
945
(Contributed by Andrew Frost in :gh: `92257 `.)
946
946
947
947
* The C API now permits registering callbacks via :c:func: `PyDict_AddWatcher `,
948
- :c:func: `PyDict_AddWatch ` and related APIs to be called whenever a dictionary
948
+ :c:func: `PyDict_Watch ` and related APIs to be called whenever a dictionary
949
949
is modified. This is intended for use by optimizing interpreters, JIT
950
950
compilers, or debuggers.
951
951
(Contributed by Carl Meyer in :gh: `91052 `.)
@@ -977,7 +977,7 @@ New Features
977
977
(Contributed by Mark Shannon in :gh: `101578 `.)
978
978
979
979
* Add :c:func: `PyErr_DisplayException `, which takes an exception instance,
980
- to replace the legacy-api :c:func: `PyErr_Display `. (Contributed by
980
+ to replace the legacy-api :c:func: `! PyErr_Display `. (Contributed by
981
981
Irit Katriel in :gh: `102755 `).
982
982
983
983
Porting to Python 3.12
@@ -1024,7 +1024,7 @@ Porting to Python 3.12
1024
1024
supported, but does not fully support multiple inheritance
1025
1025
(:gh: `95589 `), and performance may be worse.
1026
1026
Classes declaring :const: `Py_TPFLAGS_MANAGED_DICT ` should call
1027
- :c:func: `_PyObject_VisitManagedDict ` and :c:func: `_PyObject_ClearManagedDict `
1027
+ :c:func: `! _PyObject_VisitManagedDict ` and :c:func: `! _PyObject_ClearManagedDict `
1028
1028
to traverse and clear their instance's dictionaries.
1029
1029
To clear weakrefs, call :c:func: `PyObject_ClearWeakRefs `, as before.
1030
1030
@@ -1069,17 +1069,17 @@ Deprecated
1069
1069
* :c:var: `Py_HashRandomizationFlag `: use :c:member: `PyConfig.use_hash_seed `
1070
1070
and :c:member: `PyConfig.hash_seed `
1071
1071
* :c:var: `Py_IsolatedFlag `: use :c:member: `PyConfig.isolated `
1072
- * :c:var: `Py_LegacyWindowsFSEncodingFlag `: use :c:member: `PyConfig .legacy_windows_fs_encoding `
1072
+ * :c:var: `Py_LegacyWindowsFSEncodingFlag `: use :c:member: `PyPreConfig .legacy_windows_fs_encoding `
1073
1073
* :c:var: `Py_LegacyWindowsStdioFlag `: use :c:member: `PyConfig.legacy_windows_stdio `
1074
- * :c:var: `Py_FileSystemDefaultEncoding `: use :c:member: `PyConfig.filesystem_encoding `
1075
- * :c:var: `Py_FileSystemDefaultEncodeErrors `: use :c:member: `PyConfig.filesystem_errors `
1076
- * :c:var: `Py_UTF8Mode `: use :c:member: `PyPreConfig.utf8_mode ` (see :c:func: `Py_PreInitialize `)
1074
+ * :c:var: `! Py_FileSystemDefaultEncoding `: use :c:member: `PyConfig.filesystem_encoding `
1075
+ * :c:var: `! Py_FileSystemDefaultEncodeErrors `: use :c:member: `PyConfig.filesystem_errors `
1076
+ * :c:var: `! Py_UTF8Mode `: use :c:member: `PyPreConfig.utf8_mode ` (see :c:func: `Py_PreInitialize `)
1077
1077
1078
1078
The :c:func: `Py_InitializeFromConfig ` API should be used with
1079
1079
:c:type: `PyConfig ` instead.
1080
1080
(Contributed by Victor Stinner in :gh: `77782 `.)
1081
1081
1082
- * Creating :c:data: ` immutable types < Py_TPFLAGS_IMMUTABLETYPE> ` with mutable
1082
+ * Creating immutable types ( :const: ` Py_TPFLAGS_IMMUTABLETYPE `) with mutable
1083
1083
bases is deprecated and will be disabled in Python 3.14.
1084
1084
1085
1085
* The ``structmember.h `` header is deprecated, though it continues to be
@@ -1118,7 +1118,7 @@ Deprecated
1118
1118
:c:func: `PyErr_SetRaisedException ` instead.
1119
1119
(Contributed by Mark Shannon in :gh: `101578 `.)
1120
1120
1121
- * :c:func: `PyErr_Display ` is deprecated. Use :c:func: `PyErr_DisplayException `
1121
+ * :c:func: `! PyErr_Display ` is deprecated. Use :c:func: `PyErr_DisplayException `
1122
1122
instead. (Contributed by Irit Katriel in :gh: `102755 `).
1123
1123
1124
1124
@@ -1132,15 +1132,15 @@ Removed
1132
1132
1133
1133
* Legacy Unicode APIs have been removed. See :pep: `623 ` for detail.
1134
1134
1135
- * :c:macro: `PyUnicode_WCHAR_KIND `
1136
- * :c:func: `PyUnicode_AS_UNICODE `
1137
- * :c:func: `PyUnicode_AsUnicode `
1138
- * :c:func: `PyUnicode_AsUnicodeAndSize `
1139
- * :c:func: `PyUnicode_AS_DATA `
1140
- * :c:func: `PyUnicode_FromUnicode `
1141
- * :c:func: `PyUnicode_GET_SIZE `
1142
- * :c:func: `PyUnicode_GetSize `
1143
- * :c:func: `PyUnicode_GET_DATA_SIZE `
1135
+ * :c:macro: `! PyUnicode_WCHAR_KIND `
1136
+ * :c:func: `! PyUnicode_AS_UNICODE `
1137
+ * :c:func: `! PyUnicode_AsUnicode `
1138
+ * :c:func: `! PyUnicode_AsUnicodeAndSize `
1139
+ * :c:func: `! PyUnicode_AS_DATA `
1140
+ * :c:func: `! PyUnicode_FromUnicode `
1141
+ * :c:func: `! PyUnicode_GET_SIZE `
1142
+ * :c:func: `! PyUnicode_GetSize `
1143
+ * :c:func: `! PyUnicode_GET_DATA_SIZE `
1144
1144
1145
1145
* Remove the ``PyUnicode_InternImmortal() `` function and the
1146
1146
``SSTATE_INTERNED_IMMORTAL `` macro.
0 commit comments