Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:module': 0.04; 'worse': 0.07; 'received:209.85.160.174': 0.09; 'received:mail- gy0-f174.google.com': 0.09; 'wed,': 0.12; 'am,': 0.13; 'wrote:': 0.15; 'docs.': 0.16; 'subject:global': 0.16; 'cc:addr:python- list': 0.16; '>>>': 0.16; 'true,': 0.19; 'cheers,': 0.19; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; 'header:In-Reply- To:1': 0.22; 'url:view': 0.23; 'code': 0.24; 'thu,': 0.28; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.30; 'reminded': 0.30; 'chris': 0.32; 'external': 0.33; 'received:209.85.160': 0.34; 'describing': 0.35; 'unless': 0.37; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'steven': 0.38; 'comments': 0.38; 'url:docs': 0.39; 'received:209': 0.40; 'your': 0.60; 'dnia': 0.84; 'sender:addr:chris': 0.84; 'edwards': 0.91; 'to:none': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type; bh=QBXeJx6XzVLv92dMbXo8VEYsAjm0oliPaswmJ98VPSs=; b=dDZZN7G+k8nSNgttIF0Tf6GBUum3OWRvfylfrF+z/QKGk+EZr0YRBimxiV0GZx8rnI x93LO/Y+Azj00kJPfyc7IOG8pMdWlCXtEHhXVjhLoa09wYhJbtXEzg7ce9RlnEnFWhCV WebN/CN3nmEO5JpN0qFk9AVCid0BHovaIwmzI= MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: References: <3dc7e7a8-9a90-499a-b544-bb9969d9ab55@t5g2000yqj.googlegroups.com> <4e124916$0$29970$c3e8da3$5496439d@news.astraweb.com> <4e124db1$0$29973$c3e8da3$5496439d@news.astraweb.com> <20110705000131.GN1971@johnsons-web.com> <4e134b99$0$29993$c3e8da3$5496439d@news.astraweb.com> <1pvghkmjff37$.dlg@localhost.localdomain> Date: Thu, 7 Jul 2011 17:36:27 -0700 X-Google-Sender-Auth: DK4BVG2GzhbZRAThu7zllONDBNE Subject: Re: Testing if a global is defined in a module From: Chris Rebert Cc: python-list@python.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310085389 news.xs4all.nl 21789 [2001:888:2000:d::a6]:39173 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9061 On Thu, Jul 7, 2011 at 7:18 AM, Grant Edwards wrote: > On 2011-07-06, Waldek M. wrote: >> Dnia Wed, 06 Jul 2011 03:36:24 +1000, Steven D'Aprano napisa?(a): > >>> Because unless you are extremely disciplined, code and the comments >>> describing them get out of sync. [...] > >> True, but that gets far worse with external docs. Do you have in mind >> any better replacement? > > You write code that's easy to read Reminded me of this excellent presentation: "Uncomment Your Code" https://docs.google.com/present/view?id=ah82mvnssv5d_162dbgx78gw Cheers, Chris