Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed1.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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'assign': 0.07; 'alter': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.12; 'programmers,': 0.16; 'rarely': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'module': 0.19; 'aug': 0.22; 'header:User- Agent:1': 0.23; 'values': 0.27; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'possibility': 0.29; 'respective': 0.29; 'fixing': 0.31; 'programmers': 0.33; 'used,': 0.33; 'could': 0.34; 'but': 0.35; 'there': 0.35; 'subject:?': 0.36; 'project': 0.37; 'easily': 0.37; 'manager': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'users': 0.40; 'how': 0.40; 'received:173': 0.61; 'received:fios.verizon.net': 0.84; 'collective': 0.91; 'subject:skip:E 10': 0.95; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Encapsulation unpythonic? Date: Sat, 17 Aug 2013 17:22:38 -0400 References: <8255dfbd-a2a1-4ab7-b900-ee19faa459f2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-251-66.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1376774573 news.xs4all.nl 15976 [2001:888:2000:d::a6]:56250 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52642 On 8/17/2013 11:50 AM, Chris Angelico wrote: > On Sat, Aug 17, 2013 at 1:26 PM, wrote: >> 2) If it is in fact true that encapsulation is rarely used, how do I deal with the fact that other programmers can easily alter the values of members of my classes? > > > Very simply: You accept it. Let them! It's their responsibility. When a project has multiple programmers, there is a possibility that module C could monkeypatch module A in a way that breaks existing user module B. But it is still the collective responsibility of the respective users or project manager to assign responsibility for fixing the conflict. -- Terry Jan Reedy