# 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 https://github.com/python/cpython/issues/97879). cc @brettcannon
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