See PEP 638:
If I have understood well, it proposes what you want
No, it does not. It proposes actual changes to the Python interpreter.
Under my proposal, something like what is proposed there would first be implemented as a third party package.
André Roberge