• syncosmic's avatar
    bpo-31183: `dis` now handles coroutines & async generators (GH-3077) · fe2b56ab
    syncosmic yazdı
    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.
    fe2b56ab
Adı
Son kayıt (commit)
Son güncelleme
.github Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Programs Loading commit data...
Python Loading commit data...
Tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.hgeol Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README.rst Loading commit data...
aclocal.m4 Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...