Skip to content

Commit 1227dbe

Browse files
befelemeGlyphack
authored andcommitted
pythongh-111301: Advertise importlib methods removal in What's new in Python 3.12 (pythonGH-111630)
1 parent 11e7559 commit 1227dbe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Doc/whatsnew/3.12.rst

+12
Original file line numberDiff line numberDiff line change
@@ -1374,6 +1374,18 @@ APIs:
13741374
* :meth:`!unittest.TestProgram.usageExit` (:gh:`67048`)
13751375
* :class:`!webbrowser.MacOSX` (:gh:`86421`)
13761376
* :class:`classmethod` descriptor chaining (:gh:`89519`)
1377+
* :mod:`importlib.resources` deprecated methods:
1378+
1379+
* ``contents()``
1380+
* ``is_resource()``
1381+
* ``open_binary()``
1382+
* ``open_text()``
1383+
* ``path()``
1384+
* ``read_binary()``
1385+
* ``read_text()``
1386+
1387+
Use :func:`importlib.resources.files()` instead. Refer to `importlib-resources: Migrating from Legacy
1388+
<https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy>`_ (:gh:`106531`)
13771389

13781390
Pending Removal in Python 3.14
13791391
------------------------------

0 commit comments

Comments
 (0)