Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'subject:Python': 0.04; 'python)': 0.07; 'python?': 0.07; 'python': 0.07; '(also': 0.09; 'stack.': 0.09; 'sun,': 0.09; 'variables,': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'binding"': 0.16; 'model.': 0.16; 'surprising,': 0.16; 'terms,': 0.16; 'url:effbot': 0.16; 'url:zone': 0.16; 'wrong)': 0.16; 'ignore': 0.16; 'java,': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'language': 0.20; 'header:In-Reply-To:1': 0.22; '(but': 0.22; 'cc:addr:python- list': 0.22; 'correct,': 0.23; 'received:209.85.214.174': 0.23; 'received:mail-iw0-f174.google.com': 0.23; 'similar,': 0.23; 'values.': 0.23; 'objects': 0.24; 'define': 0.26; 'subject:data': 0.26; 'correct': 0.26; 'url:mailman': 0.27; 'message- id:@mail.gmail.com': 0.28; 'subject:?': 0.29; 'explicitly': 0.29; "python's": 0.29; 'cc:addr:python.org': 0.31; 'model': 0.31; '(just': 0.31; 'equally': 0.31; 'influenced': 0.31; 'does': 0.31; 'another': 0.32; 'url:listinfo': 0.33; 'uses': 0.34; 'languages.': 0.35; 'subject:What': 0.35; 'subject:use': 0.35; 'quite': 0.36; 'think': 0.36; 'data': 0.37; 'received:209.85': 0.37; 'url:python': 0.37; 'steven': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'languages': 0.38; 'url:org': 0.38; 'received:209.85.214': 0.39; 'could': 0.39; 'received:209': 0.39; "it's": 0.40; 'header:Received:5': 0.40; 'ruby': 0.60; '2011': 0.62; 'upon': 0.63; 'perfectly': 0.65; 'believe': 0.66; 'url:htm': 0.72; 'often,': 0.84; 'subject:other': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=0BHvM2aYQtbWkaPoZAakiffDg/p4aruSzibe46Pmesk=; b=KTz1yekntNjaUSXZJji1BIE293wjGXEz24w89rILXEN90v8S8ln11hPijCcurmLDJI DHRYKY4w2ziIwAJkFiQTnnbR7XxgOEaPpkO7P3bPm7yXeh0IydZQxi7x+vfGoGo1EMOp VQQNRbAopExBzzFPB1Ligs9wmgLq7kYImtzUY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=S7XdRZHdizQLaGfU9N0M8zORxfgbHOcQz8GAFRuo6hSyWaUHD2Lejl0m8Ho+RRbtXd 3inRKGkeRoLDXQ0AYFSuSIWz+efQbb7bN1yb9PX+9oq4UBGIsPai3iwLkY3zRxuqw+IR Ju0Ab9uTs3PqzYvaQGum+1Io3xfnsEfOU98u8= MIME-Version: 1.0 In-Reply-To: <4dbd1dbf$0$29991$c3e8da3$5496439d@news.astraweb.com> References: <4dbd1dbf$0$29991$c3e8da3$5496439d@news.astraweb.com> Date: Sun, 1 May 2011 19:00:27 +1000 Subject: Re: What other languages use the same data model as Python? From: Alec Taylor To: "Steven D'Aprano" Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 38 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1304240436 news.xs4all.nl 41114 [::ffff:82.94.164.166]:53886 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4383 I think ruby does On Sun, May 1, 2011 at 6:45 PM, Steven D'Aprano wrote: > Python uses a data model of "name binding" and "call by object" (also > known as "call by sharing"). I trust I don't need to define my terms, but > just in case: > > http://effbot.org/zone/call-by-object.htm > http://effbot.org/zone/python-objects.htm > > > Now, this is different from languages like C and Pascal, which is based > on variables, or Forth, which explicitly manipulates a stack. Quite > often, when people want to impress upon others that Python is not C, they > will say: > > "Python's data model is different from other languages" > > which is perfectly correct, if you think of C as "other languages". But > it's equally correct to say that Python's data model is the same as other > languages. As I understand it, Python and Ruby have the same data model. > So does Java, so long as you only consider objects and ignore unboxed > native values. I believe (but could be wrong) that another language of > about the same vintage as Python, Emerald, also uses the same model. > That's not surprising, because I believe that Emerald (just like Python) > was strongly influenced by CLU. > > What other languages use the same, or mostly similar, data model as > Python? > > > > -- > Steven > -- > http://mail.python.org/mailman/listinfo/python-list >