Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Pyhon 2.x or 3.x, which is faster? Date: Sat, 12 Mar 2016 21:40:48 +1100 Lines: 12 Message-ID: References: <56df6761$0$1588$c3e8da3$5496439d@news.astraweb.com> <56e2579e$0$1608$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de zy9JEBIW/cNmkL9vcAF+Wwo2K9afJ6qvdwTDsfEq6/6w== 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; 'received:209.85.223': 0.03; 'strings.': 0.07; 'cc:addr:python-list': 0.09; 'immutable': 0.09; 'semantics': 0.09; 'subject:which': 0.09; 'python.': 0.11; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'say,': 0.18; 'language': 0.19; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'regardless': 0.31; 'definition': 0.34; 'received:google.com': 0.35; 'received:209.85': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'operating': 0.37; '12,': 0.37; 'received:209': 0.38; 'mar': 0.65; 'fundamental': 0.66; 'act': 0.67; 'chrisa': 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=iSaHHBPGvC7DX7feC5l7gwlfu09HZ2jcBXdAkzCKqHg=; b=tHO77VFVUqVNzAVs1JNxrC3pio+R96GNbA0UE4M0NMNPXlA02yw0h/quX83a7JR+y+ Z38gu/K4bsoOV1vdMrrzVZPqplQ7xabuRcFh9znthbiVAlGSttrnFR0bLya1yYzbWqO5 G9jpO4PTrWZWhpZoTCzNiaLcBpELEBxPLr6nhhwGd1r+Lbbm9Cb2Za5kSvVE4DSkFppX eVhpp6Ia3TAUdvRbRNjQzJulWei0KZMdEtfwb/VMgcp2jVu+6uUC0XiOy91ke3U5YWDC kdcmrC4tm/FhT1G8K8fqXPKdqvxyRnmHEklDH78MT93UE6nDlkhmgKRT3eknIMec/fpz +ynA== 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=iSaHHBPGvC7DX7feC5l7gwlfu09HZ2jcBXdAkzCKqHg=; b=IR3OOXoUvROVhLU2m46CtTUUJzH6OftgDrh/FGPzuYOelDHT9Ca0tG8lJQ5FjCiWUw /YR8pHGn+9r6YIojBOIx4eZgcw9hFHdzBBKW9nrJChRLDgrx5uLH13BP0d+d1+wm7Dqi AtCCGP5/a7uSQLhkg40fo/7iWXAiP+v31yvdvo/fcwD+TnrIVAuVYmVHLWT3S41bXcpg lWlZ+Ukl6vP1AkvpSsYwYRkpIrbem5tGr9+on21VKpG4ABFS/6q0XCidFcGRLp1Ftp2J EMP+KiKDP0qH1vZz9qAY4vmHwVvULS2TfWcJVCr6U/A+YsapnaddXCBPmjBWWf0BNiHn D94w== X-Gm-Message-State: AD7BkJL8eUrw4feWQOsSmlF8cTCfLxcsUscY0CZyjEynywBq6y0H5w/WVf83619MOyAG13SFcHNMBcCh6fY2JQ== X-Received: by 10.107.138.75 with SMTP id m72mr15148787iod.31.1457779248711; Sat, 12 Mar 2016 02:40:48 -0800 (PST) In-Reply-To: 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:104688 On Sat, Mar 12, 2016 at 9:34 PM, BartC wrote: >> The act of "fixing" it, as you say, would change the semantics of the >> language in a fundamental and major way. Strings by definition are >> immutable in Python. > > > Yet INPLACE_ADD is a valid byte-code even when operating on strings. That's because INPLACE_ADD is a valid byte-code regardless of what it's working on. ChrisA