[issue22480] SystemExit out of run_until_complete causes AttributeError when using python3 -m

STINNER Victor report at bugs.python.org
Wed Sep 24 16:47:24 CEST 2014


STINNER Victor added the comment:

Running "python test.py" and "python -m test" changes how the code is loaded. With "python test.py", test.py becomes the "__main__" module, whereas "python -m test" uses the "test" module.

At Python exit, the __main__ module and other modules are destroyed differently.

Anyway, this issue is another example of the issue #22428 and so I close it as duplicate.

----------
resolution:  -> duplicate
superseder:  -> asyncio: KeyboardInterrupt inside a coroutine causes AttributeError
versions: +Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22480>
_______________________________________


More information about the Python-bugs-list mailing list