]> granicus.if.org Git - python/commit
bpo-32591: Add native coroutine origin tracking (#5250)
authorNathaniel J. Smith <njs@pobox.com>
Sun, 21 Jan 2018 14:44:07 +0000 (06:44 -0800)
committerYury Selivanov <yury@magic.io>
Sun, 21 Jan 2018 14:44:07 +0000 (09:44 -0500)
commitfc2f407829d9817ddacccae6944dd0879cfaca24
tree1775a28a8181975363798f9b3e7cb2bb100e49a2
parent1211c9a9897a174b7261ca258cabf289815a40d8
bpo-32591: Add native coroutine origin tracking (#5250)

* Add coro.cr_origin and sys.set_coroutine_origin_tracking_depth
* Use coroutine origin information in the unawaited coroutine warning
* Stop using set_coroutine_wrapper in asyncio debug mode
* In BaseEventLoop.set_debug, enable debugging in the correct thread
20 files changed:
Doc/library/inspect.rst
Doc/library/sys.rst
Doc/whatsnew/3.7.rst
Include/ceval.h
Include/genobject.h
Include/pystate.h
Include/warnings.h
Lib/asyncio/base_events.py
Lib/asyncio/coroutines.py
Lib/test/test_asyncio/test_pep492.py
Lib/test/test_coroutines.py
Lib/warnings.py
Misc/ACKS
Misc/NEWS.d/next/Core and Builtins/2018-01-20-00-50-33.bpo-32591.666kl6.rst [new file with mode: 0644]
Objects/genobject.c
Python/_warnings.c
Python/ceval.c
Python/clinic/sysmodule.c.h [new file with mode: 0644]
Python/pystate.c
Python/sysmodule.c