https://github.com/python/cpython/commit/281fef1e4cc15f94d20cf64907f9d8d9fea16d39 commit: 281fef1e4cc15f94d20cf64907f9d8d9fea16d39 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: ambv <[email protected]> date: 2024-01-18T14:38:13+01:00 summary:
[3.12] gh-111301: Advertise importlib methods removal in What's new in Python 3.12 (GH-111630) (GH-114187) (cherry picked from commit f49752552e673e5192f22eae0076b2650c7d6afc) Co-authored-by: Karolina Surma <[email protected]> files: M Doc/whatsnew/3.12.rst diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 78b85f671627ec..e442490f75b6bb 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 ------------------------------ _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
