On 26 Jan 2015 07:58, "Greg Ewing" <email@example.com> wrote:
> Petr Viktorin wrote:
>> On Sun, Jan 25, 2015 at 12:55 PM, Neil Girdhar <firstname.lastname@example.org> 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.
The code for that already exists, but it needs someone with the roundtuits to put together new tests and docs: http://bugs.python.org/issue11822
> Python-Dev mailing list
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com