Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: What exactly is "exact" (was Clean Singleton Docstrings) Date: Tue, 19 Jul 2016 15:30:24 +1000 Lines: 21 Message-ID: References: <7046c74e-e5ea-4dde-8847-8c556756a563@googlegroups.com> <5789B601.9000604@stoneleaf.us> <9d2a0934-bf26-42a8-9bb2-e4e75b2d2ad3@googlegroups.com> <1468652038.1427719.667878897.460955C0@webmail.messagingengine.com> <578a027c$0$1616$c3e8da3$5496439d@news.astraweb.com> <69d8d886-c18a-4c05-8bca-9a05afacd9a9@googlegroups.com> <578ca188$0$1505$c3e8da3$5496439d@news.astraweb.com> <877fcjcllf.fsf@elektro.pacujo.net> <578da1b5$0$1591$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de ZZd0OexX1CKpikQxWUlSIgTstLV8IogQavZHa9TAZZyw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'thats': 0.07; 'cc:addr :python-list': 0.09; 'mutable': 0.09; 'says.': 0.09; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'simulate': 0.16; 'subject:Singleton': 0.16; 'wrote:': 0.16; 'later': 0.16; '(in': 0.18; 'programmer': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'preferred': 0.20; 'fixing': 0.22; 'simpler': 0.22; 'header :In-Reply-To:1': 0.24; 'parameters': 0.27; 'message- id:@mail.gmail.com': 0.27; "we're": 0.30; 'says': 0.32; 'problem': 0.33; 'source': 0.33; 'true.': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'there': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'busy': 0.38; 'sure': 0.39; 'your': 0.60; 'default': 0.61; 'skip:n 10': 0.62; "they're": 0.66; 'talking': 0.67; 'skip:\xe2 10': 0.70; 'jul': 0.72; '"oh,': 0.84; 'chrisa': 0.84; 'confusion.': 0.84; 'to:none': 0.91; 'awaiting': 0.91 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:cc :content-transfer-encoding; bh=zefPrz0q9YYlxgzvTGEPJZInNSGDH45x+phjNGGwcuE=; b=0G3ZirZX/KGjxTINYncrhm1yJEg16DrC6Cp5frML5qlfxoRID9gABBI/hIujyuVRiw sq+P6n8lz8w61LwmYV+sw0ClaVUyKLlWLE5UPm7BcP73kSFvPrIJPyQtQStpJSxs4/TS GiM+mp72vsQftrMYnsOlhKXfXVp7IOI2a/xjrNfq+nv3TEV4qDEcbVmJdU4EpF1TWdBG 1Vt0bRAfCTjtGRy7cTbBgkuB1KsLsEjr0KePBlNvcCv6wIbAhIsPVMohVjddQlxn+b2U XWB04viOr9cTLW64MwjvorKM3//Vivc+ZXcnEUvz89/lOZCk1UOwNDukBjykmCye3XbO y3Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc:content-transfer-encoding; bh=zefPrz0q9YYlxgzvTGEPJZInNSGDH45x+phjNGGwcuE=; b=UR4Zdh23mnMWeW3jdHaesnJY1kcf8vhAAiJLEQLYHgY8Q5/lrv5A15qrIv6lb+ClPn Z8+FY6Ap+0P9eDoFGgfwuwaB7FKOUmusoukY5fCVKMfJp01RcUaoAzVJMfhqIfjUB+nu DWkJka3qWOgYtWr5U62o3btmh39SvN4DTha+J1J5QYuCnJeKcLPZ8TIxGGiU8TX6QcuI I1e9D7/EBr08KeN58y4XyPgfxhnT9ajWvC36Vn717anIIDwTEeqFLHBIj5qzwLKSnGD4 zA54fGriom2dE7Fn5TaPuyMO/yDkThdHr5lSOfzYCk64aNY5TeP0xGRoTplz8R1MkUgX po+w== X-Gm-Message-State: ALyK8tKkQa6BC9gNmr057qT1oh42Cn6njo2UVKf/ucF08v+8gIU6vRaPJcq5BZ4zzWPDhsxIrmPYFWNfeGtrxw== X-Received: by 10.28.144.80 with SMTP id s77mr1646702wmd.41.1468906225625; Mon, 18 Jul 2016 22:30:25 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <7046c74e-e5ea-4dde-8847-8c556756a563@googlegroups.com> <5789B601.9000604@stoneleaf.us> <9d2a0934-bf26-42a8-9bb2-e4e75b2d2ad3@googlegroups.com> <1468652038.1427719.667878897.460955C0@webmail.messagingengine.com> <578a027c$0$1616$c3e8da3$5496439d@news.astraweb.com> <69d8d886-c18a-4c05-8bca-9a05afacd9a9@googlegroups.com> <578ca188$0$1505$c3e8da3$5496439d@news.astraweb.com> <877fcjcllf.fsf@elektro.pacujo.net> <578da1b5$0$1591$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:111629 On Tue, Jul 19, 2016 at 2:58 PM, Rustom Mody wrote: > Analogy: > Mutable default parameters are a source of problem and confusion. > > No A says. One can use them to simulate statics > > No B says No problem as long as you make sure there is no mutation to the= mutable, either inside or outside the function. > > Sure thats all true. However > "Module-globals=E2=80=9D is a simpler answer than A > And =E2=80=9CDON=E2=80=99T=E2=80=9D is simpler than B > > So awaiting your preferred myth-ology=E2=80=A6 Preferred: Understand what's going on. Unless you're talking to a novice/student programmer (in which case "Oh, don't do that - ask me about it later when we're not busy fixing this problem" is a valid response), it's best that people understand what they're working with. ChrisA