Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #9061

Re: Testing if a global is defined in a module

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 <chris@rebertia.com>
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 <iv4f7o$mm0$1@reader1.panix.com>
References <mailman.603.1309803409.1164.python-list@python.org> <3dc7e7a8-9a90-499a-b544-bb9969d9ab55@t5g2000yqj.googlegroups.com> <mailman.606.1309811314.1164.python-list@python.org> <4e124916$0$29970$c3e8da3$5496439d@news.astraweb.com> <mailman.611.1309821881.1164.python-list@python.org> <4e124db1$0$29973$c3e8da3$5496439d@news.astraweb.com> <20110705000131.GN1971@johnsons-web.com> <mailman.613.1309824509.1164.python-list@python.org> <iuv63b$qiq$1@reader1.panix.com> <ngpta76me2tm$.dlg@localhost.localdomain> <4e134b99$0$29993$c3e8da3$5496439d@news.astraweb.com> <1pvghkmjff37$.dlg@localhost.localdomain> <iv4f7o$mm0$1@reader1.panix.com>
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 <clp2@rebertia.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.765.1310085389.1164.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Thu, Jul 7, 2011 at 7:18 AM, Grant Edwards <invalid@invalid.invalid> wrote:
> On 2011-07-06, Waldek M. <wm@localhost.localdomain> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Testing if a global is defined in a module Tim Johnson <tim@johnsons-web.com> - 2011-07-04 10:11 -0800
  Re: Testing if a global is defined in a module rantingrick <rantingrick@gmail.com> - 2011-07-04 12:40 -0700
    Re: Testing if a global is defined in a module Tim Johnson <tim@johnsons-web.com> - 2011-07-04 12:30 -0800
      Re: Testing if a global is defined in a module rantingrick <rantingrick@gmail.com> - 2011-07-04 14:30 -0700
        Re: Testing if a global is defined in a module Tim Johnson <tim@johnsons-web.com> - 2011-07-04 13:59 -0800
      Re: Testing if a global is defined in a module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-05 09:13 +1000
        Re: Testing if a global is defined in a module Tim Johnson <tim@johnsons-web.com> - 2011-07-04 15:26 -0800
          Re: Testing if a global is defined in a module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-05 09:33 +1000
            Re: Testing if a global is defined in a module Tim Johnson <tim@johnsons-web.com> - 2011-07-04 16:01 -0800
            Re: Testing if a global is defined in a module Chris Angelico <rosuav@gmail.com> - 2011-07-05 10:08 +1000
              Re: Testing if a global is defined in a module Grant Edwards <invalid@invalid.invalid> - 2011-07-05 14:11 +0000
                Re: Testing if a global is defined in a module "Waldek M." <wm@localhost.localdomain> - 2011-07-05 18:35 +0200
                Re: Testing if a global is defined in a module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-07-06 03:36 +1000
                Re: Testing if a global is defined in a module Chris Angelico <rosuav@gmail.com> - 2011-07-06 08:45 +1000
                Re: Testing if a global is defined in a module "Waldek M." <wm@localhost.localdomain> - 2011-07-06 08:00 +0200
                Re: Testing if a global is defined in a module Grant Edwards <invalid@invalid.invalid> - 2011-07-07 14:18 +0000
                Re: Testing if a global is defined in a module Chris Rebert <clp2@rebertia.com> - 2011-07-07 17:36 -0700
                Re: Testing if a global is defined in a module Grant Edwards <invalid@invalid.invalid> - 2011-07-05 22:39 +0000
            Re: Testing if a global is defined in a module Tim Johnson <tim@johnsons-web.com> - 2011-07-04 18:01 -0800
            Re: Testing if a global is defined in a module Ian Kelly <ian.g.kelly@gmail.com> - 2011-07-04 22:28 -0600
            Re: Testing if a global is defined in a module Tim Johnson <tim@johnsons-web.com> - 2011-07-05 07:30 -0800
              Re: Testing if a global is defined in a module Grant Edwards <invalid@invalid.invalid> - 2011-07-05 15:43 +0000

csiph-web