translating Python to Assembler

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Wed Jan 23 00:50:44 EST 2008


On Wed, 23 Jan 2008 04:58:02 +0000, Grant Edwards wrote:

> On 2008-01-22, over at thepond.com <over at thepond.com> wrote:
> 
>> My expertise, if any, is in assembler. I'm trying to understand Python
>> scripts and modules by examining them after they have been disassembled
>> in a Windows environment.
> 
> You can't dissassemble them, since they aren't ever converted to
> assembler and assembled.  Python is compiled into bytecode for a virtual
> machine (either the Java VM or the Python VM or the .NET VM).


There is the Python disassembler, dis, which dissassembles the bytecode 
into something which might as well be "assembler" *cough* for the virtual 
machine.



-- 
Steven



More information about the Python-list mailing list