Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.chainon-marquant.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.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.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'python': 0.08; '25,': 0.12; 'subject:was': 0.15; '_something_': 0.16; 'alex23': 0.16; 'pushes': 0.16; 'subject:=': 0.16; 'subject:Early': 0.16; 'cc:addr :python-list': 0.16; 'language': 0.17; 'wrote:': 0.18; 'issue,': 0.18; 'seems': 0.20; 'cc:no real name:2**0': 0.20; "we'd": 0.21; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; 'equally': 0.23; 'cc:2**0': 0.24; "python's": 0.24; 'obviously': 0.25; 'sat,': 0.25; "i'm": 0.26; 'url:mailman': 0.28; "wasn't": 0.28; 'message- id:@mail.gmail.com': 0.28; '24,': 0.29; 'problem': 0.29; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'fairly': 0.30; 'confusion': 0.30; 'elsewhere': 0.30; 'source': 0.31; 'certainly': 0.32; 'objects': 0.32; 'subject:]': 0.32; 'url:listinfo': 0.32; 'pretty': 0.32; 'this.': 0.33; 'received:209.85.160': 0.33; 'fundamental': 0.34; 'received:209.85.160.46': 0.35; 'received :mail-pw0-f46.google.com': 0.35; 'url:python': 0.36; 'aspect': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'url:org': 0.39; "it's": 0.40; 'received:209': 0.40; 'more': 0.61; '2011': 0.61; 'increase': 0.62; 'ever': 0.65; 'believe': 0.65; 'binding.': 0.84; 'confused?': 0.84; 'masking': 0.84; 'valid,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=sHWTsl6xO69stGwCCIvPjSHHc/AoUosfNvcA6de8t0Q=; b=I4ufkWgJ9M15UaaA/C76mr5RHSwRKF783OxDSZDvDOL7CyP4wcLQN7c+mchmt+aeix bTTpAGGMN9BXLWMPxuLNRWtschasYTLu5W3X3xfl7VkwfLauB7u7WzkqlQd3dc2PZYP6 dtQAsEWrQxNSD7/DRS6KrUvReuQKgvoCILhMI= MIME-Version: 1.0 In-Reply-To: References: <18f78d0d-1e70-4c7b-9033-1422e6edb6db@t13g2000yqg.googlegroups.com> <10c62dac-2750-4f08-8962-21952c1c0a0b@v31g2000prg.googlegroups.com> <5a7a7aab-a320-4429-a130-ffcfcf0ac174@v24g2000prn.googlegroups.com> <4EF440A9.7030101@stoneleaf.us> <9ljcutFemiU5@mid.individual.net> <9ljd41Fp3bU1@mid.individual.net> <4ef4a30d$0$29973$c3e8da3$5496439d@news.astraweb.com> <9ljqifFfj9U3@mid.individual.net> <4ef58c60$0$29973$c3e8da3$5496439d@news.astraweb.com> From: Devin Jeanpierre Date: Sat, 24 Dec 2011 19:32:06 -0500 Subject: Re: Early and late binding [was Re: what does 'a=b=c=[]' do] To: alex23 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1324773177 news.xs4all.nl 6868 [2001:888:2000:d::a6]:36072 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17870 > Because I believe that the source of confusion has far more to do with > mutable/immutable objects than with early/late binding. Masking or > 'correcting' an aspect of Python's behaviour because novices make the > wrong assumption about it just pushes the problem elsewhere and > potentially makes the language inconsistent at the same time. That seems fairly silly -- foo.append(bar) obviously mutates _something_ . Certainly it wasn't the source of my confusion when I got caught on this. What makes you believe that the fundamental confusion is about mutability? (Also, if the change is applied everywhere, the language would not be inconsistent.) -- Devin On Sat, Dec 24, 2011 at 7:10 PM, alex23 wrote: > On Dec 25, 9:25=C2=A0am, Devin Jeanpierre wrote: >> > If Python was ever 'fixed' to prevent this issue, I'm pretty sure we'd >> > see an increase in the number of questions like the OP's. >> >> What makes you so sure? Both models do make sense and are equally >> valid, it's just that only one of them is true. Is it just because >> people already used to Python would get confused? > > Because I believe that the source of confusion has far more to do with > mutable/immutable objects than with early/late binding. Masking or > 'correcting' an aspect of Python's behaviour because novices make the > wrong assumption about it just pushes the problem elsewhere and > potentially makes the language inconsistent at the same time. > -- > http://mail.python.org/mailman/listinfo/python-list