Path: csiph.com!news.mixmin.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?) Date: Thu, 24 Mar 2016 21:24:44 -0400 Organization: IISS Elusive Unicorn Lines: 21 Message-ID: References: <56f02196$0$1588$c3e8da3$5496439d@news.astraweb.com> <56f3f09a$0$1595$c3e8da3$5496439d@news.astraweb.com> <56f4236c$0$1615$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de lgfl2M7WwyNz0yPT2OxSOA6aTk6ve3/9izP212sJdAEg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'message-id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'semantics': 0.09; 'subject:which': 0.09; 'python': 0.10; '2016': 0.16; 'address).': 0.16; 'arrays,': 0.16; 'descriptors': 0.16; 'permits': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:?)': 0.16; "wouldn't": 0.16; 'url:home': 0.18; 'passing': 0.23; 'header:X-Complaints-To:1': 0.26; 'fri,': 0.27; 'parameters': 0.27; 'tend': 0.27; 'handful': 0.29; 'strings,': 0.29; 'work.': 0.30; "d'aprano": 0.33; 'steven': 0.33; 'languages': 0.34; 'except': 0.34; 'skip:> 10': 0.35; 'problem.': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'rather': 0.39; 'to:addr:python.org': 0.40; 'subject:The': 0.61; 'address': 0.61; 'mar': 0.65; 'records': 0.70; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-73-117-233.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105672 On Fri, 25 Mar 2016 04:27:05 +1100, Steven D'Aprano declaimed the following: >Correct, except I wouldn't call it a problem. That's just not how Python >semantics work. I only know of a handful of languages that support >pass-by-reference: > Classical FORTRAN for everything (though VMS added overrides to permit descriptors and accessing either the passed address AS the value or passing a value AS the address). Ada depending upon the type of object and the in/out qualifiers (I think it even permits value/return semantics rather than reference semantics for IN OUT parameters -- arrays, strings, and records tend to use by-ref, base numerics using by-val if IN, and by-ref for OUT. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/