8000 Update from patch · python/cpython@f12123e · GitHub
[go: up one dir, main page]

Skip to content

Commit f12123e

Browse files
committed
Update from patch
after run python.bat Tools\scripts\patchcheck.py
1 parent b12599c commit f12123e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Doc/whatsnew/3.10.rst.bak

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,16 +673,36 @@ When a module does not define ``__loader__``, fall back to ``__spec__.loader``.
673673

674674
encodings
675675
---------
676+
676677
:func:`encodings.normalize_encoding` now ignores non-ASCII characters.
677678
(Contributed by Hai Shi in :issue:`39337`.)
678679

680+
gc
681+
--
682+
683+
Added audit hooks for :func:`gc.get_objects`, :func:`gc.get_referrers` and
684+
:func:`gc.get_referents`. (Contributed by Pablo Galindo in :issue:`43439`.)
685+
679686
glob
680687
----
681688

682689
Added the *root_dir* and *dir_fd* parameters in :func:`~glob.glob` and
683690
:func:`~glob.iglob` which allow to specify the root directory for searching.
684691
(Contributed by Serhiy Storchaka in :issue:`38144`.)
685692

693+
importlib.metadata
694+
------------------
695+
696+
Feature parity with ``importlib_metadata`` 3.7.
697+
698+
:func:`importlib.metadata.entry_points` now provides a nicer experience
699+
for selecting entry points by group and name through a new
700+
:class:`importlib.metadata.EntryPoints` class.
701+
702+
Added :func:`importlib.metadata.packages_distributions` for resolving
703+
top-level Python modules and packages to their
704+
:class:`importlib.metadata.Distribution`.
705+
686706
inspect
687707
-------
688708

@@ -781,6 +801,13 @@ Add :data:`sys.stdlib_module_names`, containing the list of the standard library
781801
module names.
782802
(Contributed by Victor Stinner in :issue:`42955`.)
783803

804+
_thread
805+
-------
806+
807+
:func:`_thread.interrupt_main` now takes an optional signal number to
808+
simulate (the default is still :data:`signal.SIGINT`).
809+
(Contributed by Antoine Pitrou in :issue:`43356`.)
810+
784811
threading
785812
---------
786813

@@ -1203,6 +1230,11 @@ New Features
12031230
object is an instance of :class:`set` but not an instance of a subtype.
12041231
(Contributed by Pablo Galindo in :issue:`43277`.)
12051232

1233+
* Added :c:func:`PyErr_SetInterruptEx` which allows passing a signal number
1234+
to simulate.
1235+
(Contributed by Antoine Pitrou in :issue:`43356`.)
1236+
1237+
12061238
Porting to Python 3.10
12071239
----------------------
12081240

0 commit comments

Comments
 (0)
0