Access to return / exception context in finally block

2025-08-30 Thread marius.spix--- via Python-list
Dear mailing list, there is currently no direct way to observe the current interpreter state in a finally block without tracing. My idea is introducing an immutable __exit_context__ magic variable, which would have one of three possible values: * ReturnContext(value), if a return statement is

Re: Python documentary

2025-08-30 Thread Left Right via Python-list
> Had this 'live-test' failed, where would Python be today? I'm not sure if this is irony or do you honestly believe it succeeded... but I think that "where Python is today" is pretty indicative of failure. To me, however, the failure started with the whole Python 3.X project, Guido being forced i