Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?) Date: Sun, 13 Mar 2016 09:19:18 +1100 Lines: 19 Message-ID: References: <56e44258$0$1598$c3e8da3$5496439d@news.astraweb.com> <8737rvxs89.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 7XuAzJkOTMhKkEdKV0Nn3AWsniOZgxrk14UakSctagYg== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'subject:which': 0.09; 'interpreter': 0.15; '"assert"': 0.16; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hint': 0.16; 'hmm.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:?)': 0.16; 'wrote:': 0.16; 'debugging': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'prevent': 0.20; 'java': 0.22; 'am,': 0.23; 'installation': 0.23; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'wonder': 0.27; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; '13,': 0.29; "i'm": 0.30; 'run': 0.33; 'received:google.com': 0.35; 'happened': 0.35; 'something': 0.35; 'but': 0.36; 'should': 0.36; 'possible.': 0.36; 'received:209.85': 0.36; 'keyword': 0.36; 'subject:: ': 0.37; 'agree': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'mean': 0.38; 'some': 0.40; 'ever': 0.60; 'subject:The': 0.61; 'back': 0.62; 'mar': 0.65; 'afraid': 0.67; '100%': 0.72; 'chrisa': 0.84; 'faster.': 0.84; 'houses.': 0.84; 'to:none': 0.91 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; bh=4aQoIVpyM7M5fXDfPnnz4GAep8+b57NCSuV/n312bE4=; b=C8B/XPRsnrnGR/MpuKcR7cqTH92vtzIhd3kUTGkudLU51vuBtWM4Pk1M2yXp9t9JM8 CgFUMLGWA3Qci2nSwmWkwWiceQgWYXDl7yNnAJ06hu05ZCrBdGX6r2lcjj2tiL8/FDPk myAv8E31sPxU7P2e0MSYK6VAG9prn+QyNOKiT+1d6lYl9UOimrv7pZBymnAdxSeb7mcX bOI+gplJsBS42xp4LPX54isUus4LMyeAxPlCSKqHr6TiQYzwzLggKKHkdzaKKmfcCXw6 bjQkA2l4sQ+8UWXmrCJ6QY3i2gOQIFgSIlYciUn18lbscYNx9L0iZzN1RcYJEB/CI4iN 7fCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=4aQoIVpyM7M5fXDfPnnz4GAep8+b57NCSuV/n312bE4=; b=M9j+fUVjp96dFLFZm4F0BTLdAWngbQ8BFeZTNzk3jYLyWIsU04yrzUCUk2DkJ+n5Wt Dv3a4gBIn1DrjWRVq9mQBUQWA6efy4NYvy2Y8FJIlXNGe67auOV/Dy0bBk/ydAWI4tfp +/bH1pmPTHvowKO/8Hvwejy97LQUZopKnz4TKbwF5s7t7QGK3/L50ibOBKuIQFOtAykp 64KSuiPL4tcKo3nPQvPlI7b4gzeetBJXRkHzkWJQDFm/Tum0+0vpdxyu9XQSl2IGbykH 87+dASZ8W3+wVCPXcpnrgsUvpkqjh6O7R5+osB5vUz9F9qAQjKzniWnkXJDFTkkuy5zk eAjw== X-Gm-Message-State: AD7BkJKmxYwtBhB+apN7s66imWt61wowpBh9dHUdH1tF1lMFlIAhxB5Z1tBPE9SfaeSMPJz3rh4taygIHKMPwQ== X-Received: by 10.51.17.34 with SMTP id gb2mr10831526igd.13.1457821158804; Sat, 12 Mar 2016 14:19:18 -0800 (PST) In-Reply-To: <8737rvxs89.fsf@elektro.pacujo.net> 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:104731 On Sun, Mar 13, 2016 at 9:10 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> I completely agree with you that the keyword should mean "write-once" >> or "never rebind". > > That would be possible. I'm afraid that would result in people > sprinkling these "constant" keywords everywhere to make the program > supposedly run faster. -- Something like that has happened with the > "final" keyword in some Java houses. > > That would prevent the ad hoc installation of wrappers, debugging tools > etc. Hmm. I wonder if it should be like "assert" - nobody ever should depend 100% on it, but it's a hint back to the interpreter that you should never be rebinding this. ChrisA