[issue40454] DEBUG kw to asyncio.run overrides DEBUG mode set elsewhere

Yury Selivanov report at bugs.python.org
Mon May 4 19:52:58 EDT 2020


Yury Selivanov <yselivanov at gmail.com> added the comment:

Good catch. The function should be fixed to:

  _marker = object()

  def run(coro, *, debug=_marker):
     if debug is not _marker:
        loop.set_debug(debug)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40454>
_______________________________________


More information about the Python-bugs-list mailing list