homepage

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 ncoghlan
Recipients alex, belopolsky, eric.snow, jcea, meador.inge, ncoghlan, rfk, rhettinger
Date 2011年11月26日.08:38:32
SpamBayes Score 3.5459482e-06
Marked as misclassified No
Message-id <1322296714.31.0.986679009246.issue11816@psf.upfronthosting.co.za>
In-reply-to
Content
I have updated my BitBucket repo with the following changes:
- the main API is now dis.get_instructions()
- the info class is now dis.Instruction
- get_instructions() accepts a 'line_offset' argument that is added to any source code line numbers
- the printing of individual lines in all the disassembly operations is now handled by a private Instruction._disassemble() helper method
- assertBytecodeExactlyMatches now relies on the list comparison machinery in unittest, as well as the Instruction.__eq__ implementation provide by collections.namedtuple (this gives *much* better error messages when discrepancies are found)
- to further improve error messages reported by unittest (which can truncate representations), the order of the Instruction fields now has 'opname' first, then 'opcode', then the remaining fields.
History
Date User Action Args
2011年11月26日 08:38:34ncoghlansetrecipients: + ncoghlan, rhettinger, jcea, belopolsky, alex, rfk, meador.inge, eric.snow
2011年11月26日 08:38:34ncoghlansetmessageid: <1322296714.31.0.986679009246.issue11816@psf.upfronthosting.co.za>
2011年11月26日 08:38:33ncoghlanlinkissue11816 messages
2011年11月26日 08:38:32ncoghlancreate

AltStyle によって変換されたページ (->オリジナル) /