concurrent.interpreters: why syntax errors in exec() cause a SyntaxError instead of an InterpreterError?

2025-09-25 Thread a.mux--- via Python-list
Hi, I am testing the [concurrent.interpreters](https://docs.python.org/3.14/library/concurrent.interpreters.html) feature from Python **3.14rc3** (the latest current rc). The subinterpreter seems to behave in a surprising way when encountering syntax errors. For example, in the following code:

Re: can you improve this text-only beginner copy program?

2025-09-25 Thread Peter J. Holzer
On 2025-08-28 21:15:11 +0100, Mark Bourne wrote: > I don't know if Sphinx can extract types from type hints but, at least if > the docstring is just for humans reading the code, using those can reduce > the markup in the docstring: > ``` > def copy(s: int, d: int) -> None: > """ > Copy the