Message133437
| Author |
eltoder |
| Recipients |
eltoder |
| Date |
2011年04月10日.00:20:07 |
| SpamBayes Score |
5.3384577e-09 |
| Marked as misclassified |
No |
| Message-id |
<1302394810.0.0.38146154248.issue11816@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|