You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Doc/whatsnew/3.10.rst
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -633,6 +633,13 @@ argparse
633
633
Misleading phrase "optional arguments" was replaced with"options"in argparse help. Some tests might require adaptation if they rely on exact output match.
634
634
(Contributed by Raymond Hettinger in :issue:`9694`.)
635
635
636
+
array
637
+
-----
638
+
639
+
The :meth:`~array.array.index` method of :class:`array.array` now has
640
+
optional *start*and*stop* parameters.
641
+
(Contributed by Anders Lorentsen and Zackery Spytz in :issue:`31956`.)
642
+
636
643
base64
637
644
------
638
645
@@ -1043,7 +1050,13 @@ Deprecated
1043
1050
:meth:`importlib.abc.PathEntryFinder.find_spec`
1044
1051
are preferred, respectively. You can use
1045
1052
:func:`importlib.util.spec_from_loader` to helpin porting.
1046
-
(Contributed by Brett Cannon in :issue:`42134`.)
1053
+
(Contributed by Brett Cannon in :issue:`42134`.)
1054
+
1055
+
* The use of :meth:`importlib.abc.PathEntryFinder.find_loader` by the import
1056
+
system now triggers an :exc:`ImportWarning`as
1057
+
:meth:`importlib.abc.PathEntryFinder.find_spec`is preferred. You can use
1058
+
:func:`importlib.util.spec_from_loader` to helpin porting.
1059
+
(Contributed by Brett Cannon in :issue:`43672`.)
1047
1060
1048
1061
* The import system now uses the ``__spec__`` attribute on modules before
1049
1062
falling back on :meth:`~importlib.abc.Loader.module_repr`for a module's
@@ -1315,6 +1328,18 @@ New Features
1315
1328
to simulate.
1316
1329
(Contributed by Antoine Pitrou in :issue:`43356`.)
1317
1330
1331
+
* The limited C APIis now supported if Python is built in debug mode (if the
1332
+
``Py_DEBUG`` macro is defined). In the limited C API, the :c:func:`Py_INCREF`
1333
+
and :c:func:`Py_DECREF` functions are now implemented as opaque function
1334
+
calls, rather than accessing directly the :c:member:`PyObject.ob_refcnt`
1335
+
member, if Python is built in debug mode and the ``Py_LIMITED_API`` macro
1336
+
targets Python 3.10or newer. It became possible to support the limited C API
1337
+
in debug mode because the :c:type:`PyObject` structure is the same in release
1338
+
and debug mode since Python 3.8 (see :issue:`36465`).
1339
+
1340
+
The limited C APIis still not supported in the ``--with-trace-refs`` special
1341
+
build (``Py_TRACE_REFS`` macro).
1342
+
(Contributed by Victor Stinner in :issue:`43688`.)
0 commit comments