Message133437
As discussed in Issue11549 a couple of tests need to inspect disassembly of some code. Currently they have to override sys.stdout, run dis and restore stdout back. It would be much nicer if dis module provided functions that return disassembly as a string.
Provided is a patch that adds file argument to most dis functions, defaulting to sys.stdout. On top of that there are 2 new functions: dis_to_str and disassembly_to_str that return disassembly as a string instead of writing it to a file. |
|
Date |
User |
Action |
Args |
2011-04-10 00:20:10 | eltoder | set | recipients:
+ eltoder |
2011-04-10 00:20:10 | eltoder | set | messageid: <1302394810.0.0.38146154248.issue11816@psf.upfronthosting.co.za> |
2011-04-10 00:20:08 | eltoder | link | issue11816 messages |
2011-04-10 00:20:08 | eltoder | create | |
|