can i write a assemly language programs in python

Terry Reedy tjreedy at udel.edu
Fri Jul 10 22:32:17 CEST 2009


Dave Angel wrote:
> Terry Reedy wrote:

> If you mean dis.dis() that only gives you byte code.

No, dis is a disassembler and it gives readable assembly code, not the 
raw numerical bytes. Its purpose is to make byte code + other parts of 
the code object humanly readable.

As far as I know, there is no assembler that would turn the exact output 
of dis back to its input.

tjr




More information about the Python-list mailing list