GH-65961: Stop setting __cached__ on modules#142165
Conversation
DimitriPapadopoulos
left a comment
There was a problem hiding this comment.
@brettcannon This change puts the __cached__ deprecation notices under the __file__ attribute. I find this confusing::
| instead of :attr:`!module.__path__`. | ||
|
|
||
| .. attribute:: module.__file__ | ||
| .. attribute:: module.__cached__ |
There was a problem hiding this comment.
I can understand why module.__cached__ is removed here, but __cached__ remains implicitly referred to in ensuing deprecation notices.
| :attr:`module.__spec__.cached <importlib.machinery.ModuleSpec.cached>` | ||
| instead of :attr:`!module.__cached__`. | ||
|
|
||
| .. deprecated-removed:: 3.13 3.15 |
There was a problem hiding this comment.
Perhaps reintroduce attribute module.__cached__ here, or move the __cached__ deprecation notices elsewhere, not under module.__file__.
That's a syntax mistake in the docs. Can you please open an issue? |
📚 Documentation preview 📚: https://cpython-previews--142165.org.readthedocs.build/