Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'static': 0.04; 'subject:Python': 0.06; 'variables': 0.07; 'string': 0.09; 'bits': 0.09; 'integers': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'language,': 0.12; 'fetch': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'integers,': 0.16; 'think.': 0.16; 'unsigned': 0.16; 'files.': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'typing': 0.19; 'code,': 0.22; 'cc:addr:python.org': 0.22; 'byte': 0.24; 'bytes': 0.24; 'certainly': 0.24; 'integer': 0.24; 'cc:2**0': 0.24; 'signed': 0.27; 'header:In-Reply-To:1': 0.27; 'fixed': 0.29; 'am,': 0.29; 'locations': 0.30; 'message- id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; '(e.g.': 0.33; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'combination': 0.36; 'audio': 0.38; 'whatever': 0.38; 'either': 0.39; 'name': 0.63; 'subject:The': 0.64; 'different': 0.65; 'of:': 0.68; 'subjectcharset:utf-8': 0.72; 'hey,': 0.75; 'subject:have': 0.80; '(any': 0.84; 'correction,': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=UaugbwLA3MACOX1IeR8YRQsxhYl+ufPfPFnFVJOwke8=; b=WwlPPz/wIRf1KmflWodw/F+k004IN4ngQbuZ8EZuKEEhphM6Hcrh27V5SlpMYvGSB0 nq7U8G3FR1k5T5dCXpGm3vbhBG4gePdW3P8JF26iTMvWfF1Uuak5DRfXKuPmKZxR+qeT 92rKK6XF4h0uTILcioe88AWXmImU9PYI4x6dCwbggn+hV8/WTxYbziEWerMQgfxYsE93 K9JZva8VLO1eGIDtq8fgUNZsiVxw49mHKuK2bBjieyRyamRTSdIlApNZoSxBBTXT6THw nn4mNi+8c1Sl9qXmnkylsrSUhCTe12UL3y6AagIb8ZqskvDnBes+1YXrTu8L6Fl1tXFK Q8LQ== MIME-Version: 1.0 X-Received: by 10.58.105.105 with SMTP id gl9mr514913veb.3.1399514961549; Wed, 07 May 2014 19:09:21 -0700 (PDT) In-Reply-To: <536add6b$0$29965$c3e8da3$5496439d@news.astraweb.com> References: <235C4BFA-9770-481A-9FCF-21C3F036769C@gmail.com> <5368681D.8070602@islandtraining.com> <85zjiuea37.fsf_-_@benfinney.id.au> <8738gmxgay.fsf@elektro.pacujo.net> <87tx91warf.fsf@elektro.pacujo.net> <536add6b$0$29965$c3e8da3$5496439d@news.astraweb.com> Date: Thu, 8 May 2014 12:09:21 +1000 Subject: =?UTF-8?B?UmU6IFRoZSDigJxkb2VzIFB5dGhvbiBoYXZlIHZhcmlhYmxlcz/igJ0gZGViYXRl?= From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1399514964 news.xs4all.nl 2876 [2001:888:2000:d::a6]:46539 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71070 On Thu, May 8, 2014 at 11:27 AM, Steven D'Aprano wrote: > If I have understood correctly, and I welcome confirmation or correction, > one can have any combination of: > > * dynamic typing and name binding (e.g. Python and Ruby); > * static typing and name binding (e.g. Java); > * dynamic typing and fixed-location variables (any examples?); > * static typing and fixed-location variables (C, Pascal). Dynamic typing and fixed locations could really only be assembly language, I think. It's all just bits in memory, and you treat them as whatever you want. In C, signed and unsigned integers are different types; in 80x86 assembly language, they're just integers, and you use either JA or JG (Jump if Above vs Jump if Greater) to make unsigned or signed comparisons. Or you can fetch a set of four bytes out of a byte ("character", ha) string and treat it as an integer - see for instance the FOURCC system used in some audio files. It's certainly not a normal way of writing code, but hey, it fills in the hole in your set of four :) ChrisA