diff options
author | Karolina Surma <33810531+befeleme@users.noreply.github.com> | 2024-01-17 14:25:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 14:25:42 (GMT) |
commit | f49752552e673e5192f22eae0076b2650c7d6afc (patch) | |
tree | cb9f6e452e86b00e64e43171c92ba582a1dfb17c /Doc | |
parent | 0154405350c272833bd51f68138223655e142a37 (diff) | |
download | cpython-f49752552e673e5192f22eae0076b2650c7d6afc.zip cpython-f49752552e673e5192f22eae0076b2650c7d6afc.tar.gz cpython-f49752552e673e5192f22eae0076b2650c7d6afc.tar.bz2 |
gh-111301: Advertise importlib methods removal in What's new in Python 3.12 (GH-111630)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.12.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 9a2ccf7..77b12f9 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -1374,6 +1374,18 @@ APIs: * :meth:`!unittest.TestProgram.usageExit` (:gh:`67048`) * :class:`!webbrowser.MacOSX` (:gh:`86421`) * :class:`classmethod` descriptor chaining (:gh:`89519`) +* :mod:`importlib.resources` deprecated methods: + + * ``contents()`` + * ``is_resource()`` + * ``open_binary()`` + * ``open_text()`` + * ``path()`` + * ``read_binary()`` + * ``read_text()`` + + Use :func:`importlib.resources.files()` instead. Refer to `importlib-resources: Migrating from Legacy + <https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy>`_ (:gh:`106531`) Pending Removal in Python 3.14 ------------------------------ |