glin added the comment:
@Andrew Svetlov: I was surprised when you wrote "as_completed() is low-level
API.", so I wondered what is high level API and I googled it and first that
came was official doc:
https://docs.python.org/3/library/asyncio-api-index.html
Where it's written
New submission from Glin :
Situation:
You have a while cycle. inside of it a try-except block and in this
try-except block calling a function. Inside of this function raises an
exception, with is caught in the try-except block.
What happens:
Local variables of the function are not freed. (OK
Glin added the comment:
I'm not talking about exception variable, but about the variables in
local scope of function job() (in my example it is the variable 'a' of
class A).
Sorry, if I did not make myself clear.
--
status: