@@ -673,16 +673,36 @@ When a module does not define ``__loader__``, fall back to ``__spec__.loader``.
673
673
674
674
encodings
675
675
---------
676
+
676
677
:func:`encodings.normalize_encoding` now ignores non-ASCII characters.
677
678
(Contributed by Hai Shi in :issue:`39337`.)
678
679
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
+
679
686
glob
680
687
----
681
688
682
689
Added the *root_dir* and *dir_fd* parameters in :func:`~glob.glob` and
683
690
:func:`~glob.iglob` which allow to specify the root directory for searching.
684
691
(Contributed by Serhiy Storchaka in :issue:`38144`.)
685
692
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
+
686
706
inspect
687
707
-------
688
708
@@ -781,6 +801,13 @@ Add :data:`sys.stdlib_module_names`, containing the list of the standard library
781
801
module names.
782
802
(Contributed by Victor Stinner in :issue:`42955`.)
783
803
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
+
784
811
threading
785
812
---------
786
813
@@ -1203,6 +1230,11 @@ New Features
1203
1230
object is an instance of :class:`set` but not an instance of a subtype.
1204
1231
(Contributed by Pablo Galindo in :issue:`43277`.)
1205
1232
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
+
1206
1238
Porting to Python 3.10
1207
1239
----------------------
1208
1240
0 commit comments