On Wed, 2 Dec 2020 00:10:41 +0100 Marco Sulla Marco.Sulla.Python@gmail.com wrote:
On Tue, 1 Dec 2020 at 23:49, Paul Sokolovsky firstname.lastname@example.org wrote:
On Wed, 2 Dec 2020 09:16:56 +1100 Chris Angelico email@example.com wrote:
If the restricted execution model is incompatible with most Python scripts, why would anyone bother to use it?
E.g. because someone who would want to experiment with JIT, would need to apply similar restrictions anyway.
So do you think that the strict mode can help people to create a JIT for Python?
That's my aspiration for the strict mode, yes. (I provide "full disclosure" on that fact.) Beyond that, strict mode, is well, strict. So, it may be interesting to people who want more "strictness" in Python. For example, some time ago, "type annotations" were introduced, and quite many people (though not everyone of course) aspire to make their programs more strict using them. The "strict mode" proposed here is similar, but explores different dimension of strictness.
Why can't this be done in a separate project, like PyPy or Pycopy?
Both (and many more around!) of those projects are Pythons. So, not only it can be, it should be done in as many projects as possible. (In which specific, is up to their maintainers.)