Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'cc:addr :python-list': 0.10; 'subject:python': 0.11; 'extension': 0.13; ':-)': 0.13; '6502': 0.16; 'mapped': 0.16; 'peek': 0.16; 'roy': 0.16; 'simplest': 0.16; 'somewhere.': 0.16; 'subject:Feedback': 0.16; 'wrote:': 0.17; 'byte': 0.17; 'memory': 0.18; '(or': 0.18; 'either.': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'cc:no real name:2**0': 0.24; 'device': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; "d'aprano": 0.29; 'i/o': 0.29; 'steven': 0.29; 'usually': 0.30; 'bus': 0.30; 'basic': 0.30; 'implement': 0.32; "aren't": 0.33; 'doing': 0.35; 'similar': 0.35; 'but': 0.36; 'subject:: ': 0.38; 'talk': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'think': 0.40; 'back': 0.62; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'smith': 0.71; 'reply-to:no real name:2**0': 0.72; 'article': 0.78; 'devices.': 0.84; 'received:74.208.4.194': 0.84 Date: Sun, 14 Oct 2012 18:38:35 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Roy Smith 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:/uvMRvyFAvDXEiQhzC+WtbxYkR/J9Ldji48MoWijIAP LvgKswriWukn10h5XOCVQd/AzH+Xpp5Wzh9VRNci+uCntaGBvH 36RV2ej0pvh039I2CBWQY10J3YF71dV8fd8vMPzTUahGWCPt/4 CUNrS+ceHAiWnBJaZio2zizAY8SR+x/8kAUd9cGgmC8XDjvCcL rJnH4/huu9MEbMg1vwbW7UNd10LLSIENS+J4ClDwMnwb6VZ1Vn 2kCtFzGMGnJHZoYWerIJv9GO7epCMrDu1U4OGMdHq9fq4a+hLe HAaBDY/TwavUPFcrM1SHCyT/vICR59A8w7Domuf1Mb0xtmEAw= = Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: d@davea.name 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350254344 news.xs4all.nl 6892 [2001:888:2000:d::a6]:59809 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31266 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. -- DaveA