]> granicus.if.org Git - python/commit
(Merge 3.4) asyncio: BaseEventLoop._assert_is_current_event_loop() now only
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 22 Jun 2014 22:04:00 +0000 (00:04 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 22 Jun 2014 22:04:00 +0000 (00:04 +0200)
commit33d2e40d887967968897eda3d8b7a0c98853bf3d
tree50d6502f93e1d1f4aa7b1e31723a55439e651277
parent2a1a49063bae2df2896a748f2a9f82d3d130a1a2
parentd6de5d8455ac0d120d9c49d04f350433a86ec4e6
(Merge 3.4) asyncio: BaseEventLoop._assert_is_current_event_loop() now only
raises an 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."