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


Groups > comp.lang.python > #3412

Re: An unusual question...

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <wisecracker@tesco.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.005
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python.': 0.05; 'python': 0.07; 'byte,': 0.09; 'received:81.103': 0.09; 'received:81.103.221': 0.09; 'received:81.103.221.35': 0.09; 'received:ispmail.ntl.com': 0.09; 'received:ntl.com': 0.09; 'runtime': 0.09; 'storing': 0.09; 'x86,': 0.09; 'written': 0.12; 'amiga': 0.16; 'binary,': 0.16; 'certainly.': 0.16; 'compiler?': 0.16; 'done"': 0.16; 'error"': 0.16; 'patching': 0.16; 'poster': 0.16; 'python".': 0.16; 'question?': 0.16; 'received:aamtaout02-winn.ispmail.ntl.com': 0.16; "somebody's": 0.16; '"python': 0.16; 'question.': 0.18; 'bytes': 0.19; 'command': 0.19; 'code,': 0.20; 'maybe': 0.21; 'saying': 0.22; 'code': 0.22; 'that?': 0.23; 'memory': 0.24; 'calling': 0.25; 'somebody': 0.25; 'byte': 0.25; 'point,': 0.25; 'expect': 0.26; "i'll": 0.26; 'problem': 0.29; 'depends': 0.29; 'certainly': 0.29; 'character.': 0.31; 'important,': 0.31; 'reveal': 0.31; 'second': 0.31; "can't": 0.31; 'to:addr:python-list': 0.32; 'thank': 0.32; 'pure': 0.33; 'sorry': 0.33; 'someone': 0.33; 'bit': 0.33; "isn't": 0.34; 'skip:" 10': 0.34; 'post': 0.34; 'point': 0.35; 'pull': 0.35; 'routine': 0.35; 'quite': 0.36; 'think': 0.36; 'considered': 0.36; 'problem.': 0.36; 'enough': 0.37; 'else': 0.37; 'two': 0.37; 'machine': 0.37; 'should': 0.37; 'exactly': 0.37; 'run': 0.37; 'but': 0.38; 'no.': 0.38; 'it!': 0.39; 'end': 0.39; 'to:addr:python.org': 0.39; 'where': 0.39; 'how': 0.39; 'would': 0.40; 'might': 0.40; 'from:no real name:2**0': 0.60; 'give': 0.61; 'questions,': 0.62; 'url:net': 0.62; 'url:search': 0.64; 'here': 0.65; 'important.': 0.65; 'buy': 0.67; 'attitude': 0.68; 'skill': 0.69; 'hearing': 0.70; 'below,': 0.71; 'heart': 0.71; 'secret': 0.77; 'abrasive': 0.84; 'i`ll': 0.84; 'injecting': 0.84; 'knife.': 0.84; 'army': 0.93; 'swiss': 0.95
Date Sun, 17 Apr 2011 17:17:02 +0100
From <wisecracker@tesco.net>
To Python <python-list@python.org>
Subject Re: An unusual question...
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Priority 3 (Normal)
Sensitivity Normal
X-Originating-IP from 217.39.32.97 by mail.tesco.net; Sun, 17 Apr 2011 17:17:02 +0100
X-Mailer 4.2.7
X-Cloudmark-Analysis v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=W5MoBzYaD9EA:10 a=VGi4Nqwp24wA:10 a=IkcTkHD0fZMA:10 a=uVhb0EPuAAAA:8 a=nWwrNhkoAAAA:8 a=6bQkU-fnAAAA:8 a=1AQPMO6VCdxPXA3UVzgA:9 a=TT46_9IDeZPFu38GrFcA:7 a=QEXdDO2ut3YA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.465.1303057024.9059.python-list@python.org> (permalink)
Lines 83
NNTP-Posting-Host 82.94.164.166
X-Trace 1303057024 news.xs4all.nl 81484 [::ffff:82.94.164.166]:34736
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:3412

Show key headers only | View raw


Hello Steven...

I read the whole of your post first and you come across one abrasive character.

>> I can easily place a machine code, PURE binary, routine into Python.

> What do you mean by "into Python"? Do you mean patching the Python
> compiler? Injecting code into the runtime interpreter?

No and no.

> Storing a bunch of bytes in memory?

Not quite but close enough at this point...

> What machine code, for which CPU?

Is that important when I mentioned MMU at the end of my question?

If it is so important then how about 68060 for a starter.

>> I can also find out where it is EXACTLY just as easily so this is not my
>> problem.

> And how would you do that?

Why should I reveal that secret at this point, if you want to know, buy an AMIGA
without an MMU and run Python to find out where it is - I already know.

I`ll give you a clue... id(some_object) is close enough but NOT that close.
I'll give you a second clue... the NOP assembly instruction IS important, 0x4e75,
two bytes for 68K and 0x90? one byte for x86, again byte, word or long isn't important.

>> The problem is calling it!

>> can I expect a "segmentation error" 

> Almost certainly. 

Thank you!
That was all I wanted not the supercilious attitude you have shown with the remainder
of your post below, that was unnecessary.

> Sorry to be cynical, but if you have to ask these questions, you almost 
> certainly don't have the skill to successfully pull it off.

Quote my RSM:-
"Never underestimate you opponent!"

> Reading your questions is a bit like hearing somebody saying "I have a 
> Swiss Army Knife. If I poke around here in somebody's chest, can I do a 
> heart transplant, or do you think they might die?"

Did I ask for that?!?

>> OR because the "Jump" command is
>> already inside the Python terminal would this be considered inside
>> Python`s working memory from the MMUs point of view?

> I don't know. That depends on what you mean by "into Python".

Someone else understood immediately but maybe for pedanticheads like you
I should have written "Python script".

Anyhow "no it can't be done" would have been quite sufficient.

I am silent on this now as the previous poster already answered.my question.



--
73...

Bazza, G0LCU...

Team AMIGA...

http://homepages.tesco.net/wisecracker/

http://main.aminet.net/search?readme=wisecracker

http://mikeos.berlios.de/

Back to comp.lang.python | Previous | NextNext in thread | Find similar


Thread

Re: An unusual question... <wisecracker@tesco.net> - 2011-04-17 17:17 +0100
  Re: An unusual question... "Rhodri James" <rhodri@wildebst.demon.co.uk> - 2011-04-18 01:32 +0100

csiph-web