summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorsyncosmic <gc@syncosmic.io>2017-08-18 02:29:21 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2017-08-18 02:29:21 (GMT)
commitfe2b56ab9212c1cf19c48b848fa60f7f201c366f (patch)
treed16493fb8cc7ff1f7e947011e65670d6d8e5e425 /PC
parent82aff62462e65077a6614b466c986f93a601c33d (diff)
downloadcpython-fe2b56ab9212c1cf19c48b848fa60f7f201c366f.zip
cpython-fe2b56ab9212c1cf19c48b848fa60f7f201c366f.tar.gz
cpython-fe2b56ab9212c1cf19c48b848fa60f7f201c366f.tar.bz2
bpo-31183: `dis` now handles coroutines & async generators (GH-3077)
Coroutines and async generators use a distinct attribute name for their code objects, so this updates the `dis` module to correctly disassemble objects with those attributes. Due to the increase in the test module length, it also fixes some latent defects in the tests related to how the displayed source line numbers are extracted. https://bugs.python.org/issue31230 is a follow-up issue suggesting we may want to solve this a different way, by instead giving all these object types a common `__code__` attribute, avoiding the need for special casing in the `dis` module.
Diffstat (limited to 'PC')
0 files changed, 0 insertions, 0 deletions