Skip to content

Commit 0d0c668

Browse files
gh-145299: Move __cached__ deprecation to its own section
The deprecation notice for __cached__ was incorrectly placed under the __file__ attribute documentation. This moves it to a new __cached__ section where it belongs.
1 parent a1ec746 commit 0d0c668

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/reference/datamodel.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,6 +1084,10 @@ this approach.
10841084
:ref:`import system <importsystem>` may opt to leave it unset if it
10851085
has no semantic meaning (for example, a module loaded from a database).
10861086

1087+
.. attribute:: module.__cached__
1088+
1089+
The pathname of the compiled version of the module's code, if available.
1090+
10871091
.. deprecated-removed:: 3.13 3.15
10881092
Setting ``__cached__`` on a module while failing to set
10891093
:attr:`!__spec__.cached` is deprecated. In Python 3.15,

0 commit comments

Comments
 (0)