[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2019-02-08 Thread glin
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

[issue5641] Local variables not freed when Exception raises in function called from cycle

2009-04-01 Thread Glin
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

[issue5641] Local variables not freed when Exception raises in function called from cycle

2009-04-02 Thread Glin
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: