Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed5.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'subject:python': 0.11; 'extension': 0.13; ':-)': 0.13; '6502': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'mapped': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'peek': 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; '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; "d'aprano": 0.29; 'i/o': 0.29; 'received:192.168.1.3': 0.29; 'steven': 0.29; 'usually': 0.30; 'bus': 0.30; 'basic': 0.30; 'implement': 0.32; "aren't": 0.33; 'to:addr:python-list': 0.33; 'doing': 0.35; 'similar': 0.35; 'but': 0.36; 'depends': 0.36; 'subject:: ': 0.38; 'some': 0.38; 'talk': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'think': 0.40; 'back': 0.62; 'header :Reply-To:1': 0.68; 'smith': 0.71; 'reply-to:no real name:2**0': 0.72; 'article': 0.78; 'cpu.': 0.84; 'devices.': 0.84; 'reply- to:addr:python.org': 0.84; 'angel': 0.93 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=OqzNOlDt c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=b2nRVtXOy8EA:10 a=yHrsb2Vx5GEA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=DaFgaNYaAuIA:10 a=RA7hJJdoAAAA:8 a=kZ7UWmmPAAAA:8 a=VkB6rrb_BBGkvuZLUn4A:9 a=wPNLvfGTeEIA:10 a=pyH5b1fOeEsA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Mon, 15 Oct 2012 00:40:58 +0100 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Feedback on my python framework I'm building. 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> In-Reply-To: <507B3EEB.1000801@davea.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350258052 news.xs4all.nl 6932 [2001:888:2000:d::a6]:45809 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31267 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.