Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #3395

Re: An unusual question...

Newsgroups comp.lang.python
Date 2011-04-17 07:11 -0700
Subject Re: An unusual question...
From Miki Tebeka <miki.tebeka@gmail.com>
Message-ID <mailman.462.1303049519.9059.python-list@python.org> (permalink)

Show all headers | View raw


> 
> If I wrote an Assembly(/Assembler) routine to call
> this binary code using say the JMP instruction or
> using PUSH absolute value and RET, and, call these
> "Jump" using:-
> 
> os.system("/full//path/to/Jump <address_of_binary_in_ascii>")
This is calling a different *program* outside of the current Python process. I don't think it'll do what you want (different memory segments). 

I'd start with either using ctypes/libffi or writing my own C extension wrapper around your good.

HTH
--
Miki Tebeka <miki.tebeka@gmail.com>
http://pythonwise.blogspot.com

Back to comp.lang.python | Previous | Next | Find similar


Thread

Re: An unusual question... Miki Tebeka <miki.tebeka@gmail.com> - 2011-04-17 07:11 -0700

csiph-web