On 02/14/2014 03:01 AM, Yury Selivanov wrote:
On 2/13/2014, 2:39 PM, Guido van Rossum wrote:
Having a new debug flag on the event loop that defaults to False sounds
like a fine solution (I don't like the existing _DEBUG thing much
anyway).
Please make getting and setting it methods (every event loop API is a
method). Perhaps it ought to be an integer level instead of a bool?
Is this new flag going to be used instead of 'tasks._DEBUG'?
If yes, and if it is set to 'False', then the question is how
can you set it to True before importing asyncio (to make
CoroWrapper kick in for asyncio coroutines too)?
Maybe it can be initialized through an environment variable?
And I'm big +1 on adding it.
I'm not a big fan of env variables, but I think they have their use, in
cases like this.
--
Saúl Ibarra Corretgé
bettercallsaghul.com