Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.straub-nv.de!feeder.erje.net!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'mrab': 0.05; 'python': 0.09; 'facts': 0.09; 'prevents': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:python': 0.11; 'extension': 0.13; ':-)': 0.13; '6502': 0.16; 'mapped': 0.16; 'peek': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'roy': 0.16; 'simplest': 0.16; 'somewhere.': 0.16; 'subject:Feedback': 0.16; 'wrote:': 0.17; 'byte': 0.17; '>>>': 0.18; 'memory': 0.18; '(or': 0.18; 'meant': 0.21; 'either.': 0.22; 'example': 0.23; 'device': 0.24; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'embedded': 0.27; "doesn't": 0.28; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; '>>>>': 0.29; "d'aprano": 0.29; 'i/o': 0.29; 'steven': 0.29; 'usually': 0.30; 'bus': 0.30; 'basic': 0.30; 'implement': 0.32; 'generally': 0.32; 'received:84': 0.32; "aren't": 0.33; 'to:addr:python-list': 0.33; 'doing': 0.35; 'similar': 0.35; 'received:org': 0.36; 'but': 0.36; 'depends': 0.36; 'too': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'talk': 0.38; 'to:addr:python.org': 0.39; 'space': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'john': 0.60; 'back': 0.62; 'our': 0.65; 'subject': 0.66; 'enjoy': 0.67; 'direct': 0.69; 'smith': 0.71; 'article': 0.78; '"too': 0.84; 'cpu.': 0.84; 'devices.': 0.84; 'kennedy': 0.84; 'angel': 0.93; 'comfort': 0.97 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Roel Schroeven Subject: Re: Feedback on my python framework I'm building. Date: Mon, 15 Oct 2012 19:29:56 +0200 References: <634c9dca-e64d-40c6-b9d5-cf04a86a220a@googlegroups.com> <4c7a82ca-de0c-4b8b-a128-9ecd1b4c8b31@googlegroups.com> <5f18f5d1-1442-4a10-922c-783dc6ddf657@googlegroups.com> <507a3365$0$6574$c3e8da3$5496439d@news.astraweb.com> <507B3EEB.1000801@davea.name> <507B4D8A.6050903@mrabarnett.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: d54c6d210.access.telenet.be User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) In-Reply-To: <507B4D8A.6050903@mrabarnett.plus.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350322212 news.xs4all.nl 6919 [2001:888:2000:d::a6]:43229 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31328 MRAB schreef: > On 2012-10-14 23:38, Dave Angel wrote: >> On 10/14/2012 08:48 AM, Roy Smith wrote: >>> In article <507a3365$0$6574$c3e8da3$5496439d@news.astraweb.com>, >>> Steven D'Aprano wrote: >>> >>>> Remember using PEEK and POKE commands with BASIC back in >>>> 1978? Pretty much impossible in Python. >>> But, trivial to implement as an extension :-) >> PEEK and POKE were intended to be used with memory mapped devices. >> Simplest example is the 6502 chip, which had no I/O bus -- it was all >> memory mapped. Want to change baud rate? poke a byte somewhere. >> >> These days, the only device I can think of that's usually memory mapped >> is the video. And few programs talk to it that way. >> >> Now, INP and OUT (or various similar names) were for doing port I/o. >> But I suspect that modern systems aren't going to let you do much of >> that either. >> > It depends on the CPU. Some have specialised instructions for I/O, > others don't. I think Roy Smith meant that the OS on modern systems generally prevents direct access from user space to either memory mapped I/O or port mapped I/O. Embedded systems might allow direct access, but AFAIK Python doesn't run on those. Best regards, Roel -- "Too often we hold fast to the cliches of our forebears. We subject all facts to a prefabricated set of interpretations. Too often we enjoy the comfort of opinion without the discomfort of thought." -- John F Kennedy roel@roelschroeven.net