Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gh-65961: Deprecate __cached__ #97990

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 6, 2022
Prev Previous commit
Next Next commit
Link to ModuleSpec in versionchanged notices
  • Loading branch information
brettcannon committed Oct 6, 2022
commit e8f74e40e90aaeffe8d8caa0ebc3e6fdb38001fc
6 changes: 4 additions & 2 deletions 6 Doc/c-api/import.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ Importing Modules

.. versionchanged:: 3.12
The setting of :attr:`__cached__` and :attr:`__loader__` is
deprecated.
deprecated. See :class:`~importlib.machinery.ModuleSpec` for
alternatives.


.. c:function:: PyObject* PyImport_ExecCodeModuleEx(const char *name, PyObject *co, const char *pathname)
Expand All @@ -172,7 +173,8 @@ Importing Modules
.. versionadded:: 3.3

.. versionchanged:: 3.12
Setting :attr:`__cached__` is deprecated.
Setting :attr:`__cached__` is deprecated. See
:class:`~importlib.machinery.ModuleSpec` for alternatives.


.. c:function:: PyObject* PyImport_ExecCodeModuleWithPathnames(const char *name, PyObject *co, const char *pathname, const char *cpathname)
Expand Down
3 changes: 2 additions & 1 deletion 3 Doc/library/runpy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ The :mod:`runpy` module provides two functions:

.. versionchanged:: 3.12
The setting of ``__cached__``, ``__loader__``, and
``__package__`` are deprecated.
``__package__`` are deprecated. See
:class:`~importlib.machinery.ModuleSpec` for alternatives.

.. function:: run_path(path_name, init_globals=None, run_name=None)

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.