[Python-Dev] Disassembly of generated comprehensions

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jan 25 22:56:17 CET 2015


Petr Viktorin wrote:
> On Sun, Jan 25, 2015 at 12:55 PM, Neil Girdhar <mistersheik at gmail.com> wrote:
> 
>>How do I disassemble a generated comprehension?
>>
> Put it in a function, then get it from the function's code's constants.

It would be handy if dis had an option to disassemble nested
functions like this automatically.

-- 
Greg


More information about the Python-Dev mailing list