Re: can i write a assemly language programs in python

2009-07-10 Thread Terry Reedy
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, ther

Re: can i write a assemly language programs in python

2009-07-10 Thread member thudfoo
On Fri, Jul 10, 2009 at 5:37 AM, Tim Chase wrote: > m.reddy prasad reddy wrote: >> >> can any one tell me how to write assembly language programs in python...if >> no is there any other way to write the programs in python > > Bah, writing assembly language is easy in Python: > >  print("MOV EAX, [E

Re: can i write a assemly language programs in python

2009-07-10 Thread Tim Chase
m.reddy prasad reddy wrote: can any one tell me how to write assembly language programs in python...if no is there any other way to write the programs in python Bah, writing assembly language is easy in Python: print("MOV EAX, [EBX]") print("XOR EBX, EBX") Just adjust the strings for your

Re: can i write a assemly language programs in python

2009-07-10 Thread Dave Angel
Terry Reedy wrote: Dave Angel wrote: m.reddy prasad reddy wrote: can any one tell me how to write assembly language programs in python...if no is there any other way to write the programs in python Reddi prasad reddy ph.no:09958083797 Assembly language is a different programming language

Re: can i write a assemly language programs in python

2009-07-09 Thread Bearophile
Simon Forman: > Examine CorePyhttp://www.corepy.org > > "CorePy is a complete system for developing machine-level programs in > Python. CorePy lets developers build and execute assembly-level > programs interactively from the Python command prompt, embed them > directly in Python applications, or e

Re: can i write a assemly language programs in python

2009-07-09 Thread Simon Forman
On Thu, Jul 9, 2009 at 3:17 AM, m.reddy prasad reddy wrote: > > can any one tell me how to write assembly language programs in python...if > no is there any other way to write the programs in python > > Reddi prasad reddy > ph.no:09958083797 > > -- > http://mail.python.org/mailman/listinfo/python-l

Re: can i write a assemly language programs in python

2009-07-09 Thread Pablo Torres N.
Or maybe he meant if you can have both Python and assembler code in the same source file, but I haven't heard of it. If what you are trying to do is write a faster version of some part of your code, try SWIG: http://www.swig.org/ Playing the guessing game is a time sink, and since nobody has done

Re: can i write a assemly language programs in python

2009-07-09 Thread Terry Reedy
Dave Angel wrote: m.reddy prasad reddy wrote: can any one tell me how to write assembly language programs in python...if no is there any other way to write the programs in python Reddi prasad reddy ph.no:09958083797 Assembly language is a different programming language than Python. You c

Re: can i write a assemly language programs in python

2009-07-09 Thread Dave Angel
m.reddy prasad reddy wrote: can any one tell me how to write assembly language programs in python...if no is there any other way to write the programs in python Reddi prasad reddy ph.no:09958083797 Assembly language is a different programming language than Python. You can use both in the s

Re: can i write a assemly language programs in python

2009-07-09 Thread Tom Kermode
I wonder if the OP is trying to find out whether python programmes can be compiled and run as stand alone executables. (I know assembly and machine code are not the same, but it might be what they're after.) On windows you can use http://www.py2exe.org/ to bundle python programs into stand alone

Re: can i write a assemly language programs in python

2009-07-09 Thread Gabriel Genellina
En Thu, 09 Jul 2009 04:17:52 -0300, m.reddy prasad reddy escribió: can any one tell me how to write assembly language programs in python...if no is there any other way to write the programs in python You write Python programs using Python, not assembly. Perhaps if you provide more info o

can i write a assemly language programs in python

2009-07-09 Thread m.reddy prasad reddy
can any one tell me how to write assembly language programs in python...if no is there any other way to write the programs in python Reddi prasad reddy ph.no:09958083797 -- http://mail.python.org/mailman/listinfo/python-list