Remove support for __cached__
and __package__
if missing corresponding __spec__
attributes
#134088
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
stdlib
Python modules in the Lib dir
topic-importlib
type-feature
A feature request or enhancement
Feature or enhancement
Setting
__cached__
or__package__
on a module while failing to set the corresponding__spec__
attributes is deprecated since Python 3.12 (see #97879).cc @brettcannon
The text was updated successfully, but these errors were encountered: