mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
De-reference __cached__ in old What's New entries
This commit is contained in:
parent
14451f77f5
commit
ddb36a19d8
2 changed files with 2 additions and 2 deletions
|
|
@ -1337,7 +1337,7 @@ Deprecated
|
|||
it was :exc:`ImportWarning`).
|
||||
(Contributed by Brett Cannon in :gh:`65961`.)
|
||||
|
||||
* Setting :attr:`~module.__package__` or :attr:`~module.__cached__` on a
|
||||
* Setting :attr:`~module.__package__` or ``__cached__`` on a
|
||||
module is deprecated, and will cease to be set or taken into consideration by
|
||||
the import system in Python 3.14. (Contributed by Brett Cannon in :gh:`65961`.)
|
||||
|
||||
|
|
|
|||
|
|
@ -312,7 +312,7 @@ cluttering source directories, the *pyc* files are now collected in a
|
|||
Aside from the filenames and target directories, the new scheme has a few
|
||||
aspects that are visible to the programmer:
|
||||
|
||||
* Imported modules now have a :attr:`~module.__cached__` attribute which stores
|
||||
* Imported modules now have a ``__cached__`` attribute which stores
|
||||
the name of the actual file that was imported:
|
||||
|
||||
>>> import collections
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue