Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.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.198 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.64; '*S*': 0.04; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'integers,': 0.16; 'personally,': 0.16; 'typeerror:': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'list': 0.37; 'list.': 0.37; 'pm,': 0.38; 'sure': 0.39; 'number,': 0.60; 'here': 0.66; 'benefit': 0.68; 'mar': 0.68; '257': 0.84; 'confusing': 0.84; "it'd": 0.84; 'otten': 0.84; 'to:none': 0.92 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 :content-type; bh=LuJ1cq9QPlXArMsqUR8+NzVJTCvcR2MmwiBTqtoQiEM=; b=YhwmBVyTcc30hoUY1aTFQxJ7XYxQtdWaPgk2280nhgKe30i9Jfx9T1GmPE54PV30rB RWEbEVe1l0S24dDrwrHWs1F8qlilCC+EcajiswXKoJIGl9bNCO8bsn5wScbnKA7d5AHe ld4RofFoqUeyJS6Etk7gO8l0aBw/O0i0MrU7YZ2WZOB8joCNxvJfN5kKMDwz3WtZDJok TQufkfSjREYQibtFnmIJMUmCGCo4Nwz6t4eHA1XJWeXirxKCnmW0UEIcLUIILDmXLB6q C4Q+fuZVGen3cFXPcFNfTVeBE9TeN+Lrict1J4ak1ExnGNj1X8zjirOpBW3Mr2LhtWwx C5Vg== MIME-Version: 1.0 X-Received: by 10.68.201.10 with SMTP id jw10mr21352261pbc.25.1394192754849; Fri, 07 Mar 2014 03:45:54 -0800 (PST) In-Reply-To: References: Date: Fri, 7 Mar 2014 22:45:54 +1100 Subject: Re: Tuples and immutability From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394192758 news.xs4all.nl 2868 [2001:888:2000:d::a6]:53818 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67993 On Fri, Mar 7, 2014 at 10:38 PM, Peter Otten <__peter__@web.de> wrote: > TypeError: 257 is not 257 > > I'm not sure "help" is the right word here ;) It doesn't help with non-small integers, yes, but the original case was a list. Personally, I don't think there are many situations that would benefit from it, plus it'd be confusing ("I can use += with a list but not a number, why not?!"). ChrisA