Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.117 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.78; '*S*': 0.01; 'wrapper': 0.07; 'python': 0.07; 'binary': 0.14; 'extension': 0.14; 'jmp': 0.16; 'cc:2**0': 0.20; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'cc:addr:python- list': 0.22; 'memory': 0.24; 'calling': 0.25; 'wrote': 0.25; 'good.': 0.29; 'push': 0.29; 'cc:addr:python.org': 0.31; 'using': 0.34; 'header:User-Agent:1': 0.35; 'routine': 0.35; 'think': 0.36; 'either': 0.37; 'received:google.com': 0.38; 'current': 0.38; 'url:blogspot': 0.61; 'and,': 0.63; 'received:74.125.83': 0.69; 'to:addr:googlegroups.com': 0.69; 'reply-to:no real name:2**0': 0.72; 'header:Reply-To:1': 0.72; 'received:74.125.83.56': 0.84; 'received:mail-gw0-f56.google.com': 0.84; 'reply- to:addr:googlegroups.com': 0.93 Newsgroups: comp.lang.python Date: Sun, 17 Apr 2011 07:11:56 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=79.177.213.7; posting-account=uo-8fwoAAACKsFzFX78JHudx1V7WDXZ0 User-Agent: G2/1.0 MIME-Version: 1.0 Subject: Re: An unusual question... From: Miki Tebeka To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: Python X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: comp.lang.python@googlegroups.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1303049519 news.xs4all.nl 41114 [::ffff:82.94.164.166]:33851 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3395 > > 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 ") 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 http://pythonwise.blogspot.com