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


Groups > comp.lang.python > #86733

Re: Python Worst Practices

Path csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <davea@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'mrab': 0.05; 'subject:Python': 0.06; 'memory.': 0.07; 'permitted': 0.07; 'bytes,': 0.09; 'bytes.': 0.09; 'lines.': 0.09; 'whatever.': 0.09; 'wrote': 0.14; 'mostly': 0.14; '8-bit': 0.16; 'bits.': 0.16; 'instruction,': 0.16; 'likewise': 0.16; 'processor,': 0.16; 'words.': 0.16; 'wrote:': 0.18; 'obviously': 0.18; 'bit': 0.19; 'server,': 0.19; 'fit': 0.20; '>>>': 0.22; 'memory': 0.22; 'select': 0.22; 'manual': 0.22; 'header:User-Agent:1': 0.23; 'bytes': 0.24; 'processor': 0.24; '(or': 0.24; 'equivalent': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'dec': 0.30; 'mode': 0.30; 'said,': 0.30; "i'm": 0.30; 'went': 0.31; 'code': 0.31; 'lines': 0.31; '>>>>': 0.31; 'says': 0.33; 'addresses': 0.33; 'bus': 0.33; 'but': 0.35; 'data,': 0.36; 'two': 0.37; 'being': 0.38; 'architecture': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'even': 0.60; 'read': 0.60; 'dave': 0.60; 'most': 0.60; 'address': 0.63; 'charset:windows-1252': 0.65; 'between': 0.67; 'believe': 0.68; 'received:74.208': 0.68; 'therefore': 0.72; 'banks': 0.74; 'bank': 0.76; 'subject:Practices': 0.84; 'angel': 0.91
Date Mon, 02 Mar 2015 08:12:54 -0500
From Dave Angel <davea@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version 1.0
To python-list@python.org
Subject Re: Python Worst Practices
References <mclca6$iie$1@ger.gmane.org> <7053A277-9687-49B0-9FDB-CB4DB3E76DEC@gmail.com> <54F0E38D.40006@davea.name> <CAPTjJmqTsB-of0JdJKW4BNW23DEpZ17353fHa9iBHfV8-3uANw@mail.gmail.com> <mailman.19334.1425137628.18130.python-list@python.org> <NinIw.894937$551.656196@fx43.am4> <54f274bb$0$13011$c3e8da3$5496439d@news.astraweb.com> <CAPTjJmoRiTb+gL8BVKHLzGCfPkjXjX1_jU_Osu2FYkUxjC0Aqg@mail.gmail.com> <mif7fadg0g1b276shsagrg2urvonfbbnd8@4ax.com> <54F3C3FF.3040608@mrabarnett.plus.com> <54F3EBF5.3030701@davea.name> <54F459DE.8020706@mrabarnett.plus.com>
In-Reply-To <54F459DE.8020706@mrabarnett.plus.com>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:oEmfrpIu3f/QUq/2xOpnc2kt19lgsI7Iq/N6pDNzuLs hjIFBLbaJRLS25mDRLZmNboc4iBvTbzpFK9GF7U1rJx+vuKg71 ZVA9ceN8KQAALte07CzLlev5CSq9xgnpaPX8R6c4terXnM6wxC GkiJsLpRxlWxgTc+9/kCy16CISzYgLuIJCJH7twTnrMDkzM3bZ IiWo5hyvrmw2VT32giBNc7NSdmWRELhCwYEUkio//hp8IQ2YNz yf8P6JhJP3m8/LS+tKpuMBcvqAZEywQHKTuBlrYqmb/bVHrXOv 3OmGBWwcoYtcnOkkdorV3OJ4MkYQz3ohOsPM0dZ2J7orC+wuOT GopEvUYx53VefLAnRui0=
X-UI-Out-Filterresults notjunk:1;
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.19
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.37.1425301988.13471.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1425301988 news.xs4all.nl 2897 [2001:888:2000:d::a6]:42337
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:86733

Show key headers only | View raw


On 03/02/2015 07:38 AM, MRAB wrote:
> On 2015-03-02 04:49, Dave Angel wrote:
>> On 03/01/2015 08:59 PM, MRAB wrote:
>>> On 2015-03-02 01:37, Dennis Lee Bieber wrote
>>>>

>>
>> The 16 bit address bus permitted addressing of 64k words.  On most
>> processors, that was 64k bytes, though I know one Harris had no bytes,
>> but every memory access was 16 bits.  It therefore had the equivalent of
>> 128k bytes.  Likewise I believe some of the DEC and DG minis had 128k
>> bytes of addressability.
>>
> I have (or had, not sure where it is!) a manual of the TMS9900
> processor, and I'm sure it addresses 64k _bytes_.
>
> Wikipedia says "65,536 bytes or 32,768 words".
>

Like I said, on most processors, it was 64k bytes.

interestingly enough I know of one architecture which used 128k for the 
8-bit Z80, even though that processor only had 16 address lines.  Being 
a server, the code was mostly static, and fit in 64k.  But they also 
wanted 64k for data.  So they used one of the processor status lines as 
a select between two banks of memory. When the processor was fetching an 
instruction, it got it from bank 0, while if it was fetching or writing 
data, it went to bank 1.  Obviously they had a mode where it read and 
wrote from bank 0 as data, both for bootstrapping, and for overlays or 
whatever.


-- 
DaveA

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


Thread

Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-28 15:33 +0000
  Re: Python Worst Practices BartC <bc@freeuk.com> - 2015-02-28 17:55 +0000
    Re: Python Worst Practices Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-28 18:38 +0000
    Re: Python Worst Practices Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-01 13:08 +1100
      Re: Python Worst Practices Chris Angelico <rosuav@gmail.com> - 2015-03-01 13:43 +1100
      Re: Python Worst Practices BartC <bc@freeuk.com> - 2015-03-01 12:47 +0000
      Re: Python Worst Practices Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-03-01 20:37 -0500
      Re: Python Worst Practices MRAB <python@mrabarnett.plus.com> - 2015-03-02 01:59 +0000
      Re: Python Worst Practices Dave Angel <davea@davea.name> - 2015-03-01 23:49 -0500
      Re: Python Worst Practices MRAB <python@mrabarnett.plus.com> - 2015-03-02 12:38 +0000
      Re: Python Worst Practices Dave Angel <davea@davea.name> - 2015-03-02 08:12 -0500
      Re: Python Worst Practices Jonas Wielicki <jonas@wielicki.name> - 2015-03-06 07:58 +0100
      Re: Python Worst Practices Chris Angelico <rosuav@gmail.com> - 2015-03-06 21:09 +1100
        Re: Python Worst Practices Mario Figueiredo <marfig@gmail.com> - 2015-03-07 16:11 +0100

csiph-web