Extending subinterpreters with sandboxing capabilities

It looks like you are the first core developer who has voiced this :slight_smile:
But in a previous topic I gave a quick counterexample to this problem

i.e. python is so good that it allows to solve problems of a deeply low level at levels much higher.
And it seems to me that there is quite a chance to try to solve most of the problems just without a large-scale rewriting of the language architecture.
But there are still a few issues that I would like to hear from you as core developers.
And the main one is the issue with frames. Is it possible to have access to the point of their creation from python itself? Are the possible calls for accessing them limited to those events that are already in the event audit, or are there any others?