On Thursday, February 13, 2014, Yury Selivanov <[email protected]> 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'? No. > > 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. > > Yury > -- --Guido van Rossum (on iPad)
