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


Groups > comp.lang.python > #31328

Re: Feedback on my python framework I'm building.

From Roel Schroeven <roel@roelschroeven.net>
Subject Re: Feedback on my python framework I'm building.
Date 2012-10-15 19:29 +0200
References (5 earlier) <mailman.2132.1350153223.27098.python-list@python.org> <507a3365$0$6574$c3e8da3$5496439d@news.astraweb.com> <roy-275D3A.08482414102012@news.panix.com> <507B3EEB.1000801@davea.name> <507B4D8A.6050903@mrabarnett.plus.com>
Newsgroups comp.lang.python
Message-ID <mailman.2225.1350322212.27098.python-list@python.org> (permalink)

Show all headers | View raw


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 <steve+comp.lang.python@pearwood.info> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-12 21:49 -0700
  Re: Feedback on my python framework I'm building. Etienne Robillard <animelovin@gmail.com> - 2012-10-13 04:18 -0400
  Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 01:12 +1100
    Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 08:57 -0700
      Re: Feedback on my python framework I'm building. Etienne Robillard <animelovin@gmail.com> - 2012-10-13 12:10 -0400
      Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 03:48 +1100
        Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 11:18 -0700
          Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 05:33 +1100
            Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 15:24 -0700
              Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 10:06 +1100
              Re: Feedback on my python framework I'm building. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-14 02:25 +0000
                Re: one obvious parser (was "Feedback on my python framework I'm building.") Tim Chase <python.list@tim.thechases.com> - 2012-10-13 21:53 -0500
                Re: Feedback on my python framework I'm building. MRAB <python@mrabarnett.plus.com> - 2012-10-14 03:58 +0100
            Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 15:24 -0700
            Re: Feedback on my python framework I'm building. Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-10-14 03:37 +0000
              Re: Feedback on my python framework I'm building. Chris Angelico <rosuav@gmail.com> - 2012-10-14 15:20 +1100
              Re: Feedback on my python framework I'm building. Roy Smith <roy@panix.com> - 2012-10-14 08:48 -0400
                Re: Feedback on my python framework I'm building. Dave Angel <d@davea.name> - 2012-10-14 18:38 -0400
                Re: Feedback on my python framework I'm building. MRAB <python@mrabarnett.plus.com> - 2012-10-15 00:40 +0100
                Re: Feedback on my python framework I'm building. Roel Schroeven <roel@roelschroeven.net> - 2012-10-15 19:29 +0200
        Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 11:18 -0700
      Re: Feedback on my python framework I'm building. Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2012-10-14 01:43 +0100
    Re: Feedback on my python framework I'm building. nbvfour@gmail.com - 2012-10-13 08:57 -0700
  Re: Feedback on my python framework I'm building. Etienne Robillard <animelovin@gmail.com> - 2012-10-13 10:44 -0400

csiph-web