• Victor Stinner's avatar
    asyncio: BaseEventLoop._assert_is_current_event_loop() now only raises an · d6de5d84
    Victor Stinner yazdı
    exception if the current loop is not None.
    
    Guido van Rossum wrote:
    
    "The behavior that you can set the loop to None (and keep track of it
    explicitly) is part of the spec, and this should still be supported even in
    debug mode. The behavior that we raise an error if you are caught having
    multiple active loops per thread is just a debugging heuristic, and it
    shouldn't break code that follows the spec."
    d6de5d84
base_events.py 33.3 KB