Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'operator': 0.03; 'interpreter': 0.05; 'socket': 0.07; 'python': 0.11; 'overloaded': 0.16; 'wrote:': 0.18; 'commit': 0.19; 'feb': 0.22; 'example': 0.22; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'class': 0.32; 'fri,': 0.33; "can't": 0.35; 'received:google.com': 0.35; 'should': 0.36; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=O8CVtFEvtc9o1bzx0BTfq9aPoPPAztwXFHfTrifQJ5w=; b=SRQyvTZUF900i8wlJjW1G5inq9JHnUjp/oLq8mzI0FHKik8TW5QoJbUsYnIwlYQ1h7 hFpr2m9EmmSmSqNy3taNN1sVETYzZe6RFREISjIGHkFY8tGmnBam0oJ1BhRwYTErAbrg GdVNTDuzDKoNvCbrAA83w585AZZGfM5rNpVKyzjWg+tNeOit9YMYCchZbKcE7BRdjm6P J4BMvvIAgTs0gWFV1ogBGFy2ox7jSqrQa8ZzH/VhC7Zgq/J6gUsOM9fWZw0mrWIc2MDi gKbSfSdfN0hC9/Hk9Vq9NZaYxbtfCrB0/xG3xbpV6TV1zhYnVQcbA78UKTeKTrJoh97/ L3jQ== X-Received: by 10.68.190.200 with SMTP id gs8mr7940144pbc.130.1393651607509; Fri, 28 Feb 2014 21:26:47 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <059a3d10-453a-40fd-99f9-33ceb8ecabf7@googlegroups.com> From: Ian Kelly Date: Fri, 28 Feb 2014 22:26:07 -0700 Subject: Re: Tuples and immutability To: Python Content-Type: text/plain; charset=ISO-8859-1 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393651610 news.xs4all.nl 2840 [2001:888:2000:d::a6]:50104 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67292 On Fri, Feb 28, 2014 at 6:27 PM, Eric Jacoboni wrote: > Anyway, the TypeError should rollback, not commit the mistake. The Python interpreter isn't a database. It can't rollback the object because the operation that was performed may not be reversible. Consider for example a socket class where the += operator is overloaded to send a message on the socket. The message can't be unsent.