This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:10eltodersetrecipients: + eltoder
2011-04-10 00:20:10eltodersetmessageid: <1302394810.0.0.38146154248.issue11816@psf.upfronthosting.co.za>
2011-04-10 00:20:08eltoderlinkissue11816 messages
2011-04-10 00:20:08eltodercreate