Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'attributes': 0.09; 'caller': 0.09; 'messing': 0.09; 'subject:hide': 0.09; 'themselves,': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Not': 0.16; 'subject:possible': 0.16; 'variables,': 0.16; 'exception': 0.16; 'wrote:': 0.18; '(the': 0.22; 'to:name:python-list@python.org': 0.22; 'extension': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; "d'aprano": 0.31; 'steven': 0.31; "we're": 0.32; 'could': 0.34; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'convention': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'you.': 0.62; 'nobody': 0.68; '2015': 0.84 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:to :content-type; bh=bxd2opLT9Jdud7XH+yCKJ5R2YKbIcLAU6bkBJibNLyo=; b=ctiLp4Hu1qJHuF/ozH7sFzx7E61RYP1g90Yd5wPHvPwSr3l9xvciouGwt8q17Ark8r 8FPzdNinl9g9vB4NRE51Mafu/dJB4Ov5E3yBqyZOc82xWYoTtpItjFR/plhBsJhC7aGL /8LI9KdPDoAXzso7gj42hP39/k9YQhMU9EP7nZs0C9XATHXAzooKUPlDX+ZSueb375QI PaCgNwTH3AYG+JATINtLdlGL627EOkUoMGAmQCNyEHFn8WdzWsaoD/84l4G0muFbo+w0 Td9LL8PcJ9QgWLclO2/MRRah67hhIodezoCWGSCog+4RM7KBv4h++O8MverbA9smNFmO jR6g== MIME-Version: 1.0 X-Received: by 10.107.160.202 with SMTP id j193mr19719071ioe.43.1430210685462; Tue, 28 Apr 2015 01:44:45 -0700 (PDT) In-Reply-To: <553f46d2$0$11124$c3e8da3@news.astraweb.com> References: <874mo0zoz2.fsf@Equus.decebal.nl> <553f46d2$0$11124$c3e8da3@news.astraweb.com> Date: Tue, 28 Apr 2015 18:44:45 +1000 Subject: Re: Not possible to hide local variables From: Chris Angelico To: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1430210687 news.xs4all.nl 2909 [2001:888:2000:d::a6]:47857 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:89493 On Tue, Apr 28, 2015 at 6:37 PM, Steven D'Aprano wrote: > The convention is, if the caller messes with your private attributes or > variables, and their code breaks, they have nobody to blame but themselves, > and we are allowed to laugh at them. We're consenting adults here. > > (The only exception is C extension objects and built-ins, where messing with > private data could cause a segfault.) Hey. If you cause a segfault, we're still allowed to laugh at you. ChrisA