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


Groups > comp.lang.python > #8317

Re: Project-wide variable...

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <enalicho@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.036
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'wrote:': 0.15; 'modules?': 0.16; 'cc:addr:python-list': 0.16; 'pm,': 0.16; 'received:74.125.82.174': 0.19; 'received:mail- wy0-f174.google.com': 0.19; 'variable': 0.21; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'fine,': 0.23; 'message-id:@mail.gmail.com': 0.28; 'thu,': 0.28; 'environment': 0.29; 'cc:addr:python.org': 0.30; 'it.': 0.33; 'there': 0.34; 'received:google.com': 0.37; 'but': 0.37; 'using': 0.38; 'subject:: ': 0.38; 'data': 0.39; 'received:74.125.82': 0.39; 'received:74.125': 0.40; 'jun': 0.67
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=0jFM4WJYvEJ8gZEvMu0gsKHI7H1cLEaH2Wg4KB5thKM=; b=QD8TPFXNOYUtaoZcSEXX8G+/KBBGPkwbY8kKQsN+qGnwqz9S11kmBj3972sL1t+DWk Aw4djXNVKW1SZbt8iIyNeNvTnnVIzHF7IO6zq3NJ2/ZKqFIqxgAJP6TEvix0Zd/kMd3z /1zmedgkLQYJqk9QIeamKi/UUWzbBwP52Pac0=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=JhoYIrKqt7x2Dymx2MKCcRNoIDShvnjEGE8IVKe8GPfiNfaXbWk6Wvp3Am5niQONqk DR+GgLB2PEMWs25P16pRvaT/L/0I28tRkXP2Td/m1dYkaiEMxesBNNGLEBN0QQxa56+z IriQnzcIdq1JrMLVOWpMmvvUxrk82ROXSDedM=
MIME-Version 1.0
In-Reply-To <26120a7e-2e50-44a3-a27d-4b2ae26bb2ad@v11g2000prn.googlegroups.com>
References <7c6cf5e3-8ba0-45c8-86f8-bf3fc5fa2422@v11g2000prn.googlegroups.com> <26120a7e-2e50-44a3-a27d-4b2ae26bb2ad@v11g2000prn.googlegroups.com>
From Noah Hall <enalicho@gmail.com>
Date Thu, 23 Jun 2011 18:42:07 +0100
Subject Re: Project-wide variable...
To Guillaume Martel-Genest <guillaumemg@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
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.335.1308850949.1164.python-list@python.org> (permalink)
Lines 9
NNTP-Posting-Host 82.94.164.166
X-Trace 1308850949 news.xs4all.nl 14131 [::ffff:82.94.164.166]:59354
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8317

Show key headers only | View raw


On Thu, Jun 23, 2011 at 6:18 PM, Guillaume Martel-Genest
<guillaumemg@gmail.com> wrote:
> On Jun 23, 9:41 am, Gnarlodious <gnarlodi...@gmail.com> wrote:
>> Is there a way to declare a project-wide variable and use that in all
>> downstream modules?
>>
> What about using an environment variable?

Yes, that's fine, but only if the data is suitable for it.

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


Thread

Project-wide variable... Gnarlodious <gnarlodious@gmail.com> - 2011-06-23 06:41 -0700
  Re: Project-wide variable... Calvin Spealman <ironfroggy@gmail.com> - 2011-06-23 09:51 -0400
  Re: Project-wide variable... Noah Hall <enalicho@gmail.com> - 2011-06-23 14:59 +0100
    Re: Project-wide variable... Gnarlodious <gnarlodious@gmail.com> - 2011-06-23 07:09 -0700
      Re: Project-wide variable... Peter Otten <__peter__@web.de> - 2011-06-23 16:42 +0200
        Re: Project-wide variable... "bruno.desthuilliers@gmail.com" <bruno.desthuilliers@gmail.com> - 2011-06-23 08:20 -0700
        Re: Project-wide variable... Gnarlodious <gnarlodious@gmail.com> - 2011-06-23 10:48 -0700
      Re: Project-wide variable... Noah Hall <enalicho@gmail.com> - 2011-06-23 15:55 +0100
      Re: Project-wide variable... Terry Reedy <tjreedy@udel.edu> - 2011-06-23 14:10 -0400
        Re: Project-wide variable... Gnarlodious <gnarlodious@gmail.com> - 2011-06-23 19:01 -0700
          Re: Project-wide variable... Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-06-24 02:11 +0000
            Re: Project-wide variable... Gnarlodious <gnarlodious@gmail.com> - 2011-06-23 20:49 -0700
              Re: Project-wide variable... Gnarlodious <gnarlodious@gmail.com> - 2011-06-23 21:01 -0700
                Re: Project-wide variable... alex23 <wuwei23@gmail.com> - 2011-06-23 21:04 -0700
              Re: Project-wide variable... Terry Reedy <tjreedy@udel.edu> - 2011-06-24 02:27 -0400
                Re: Project-wide variable... Gnarlodious <gnarlodious@gmail.com> - 2011-06-24 04:30 -0700
                Re: Project-wide variable... Terry Reedy <tjreedy@udel.edu> - 2011-06-24 17:19 -0400
  Re: Project-wide variable... Guillaume Martel-Genest <guillaumemg@gmail.com> - 2011-06-23 10:18 -0700
    Re: Project-wide variable... Noah Hall <enalicho@gmail.com> - 2011-06-23 18:42 +0100
      Re: Project-wide variable... Gnarlodious <gnarlodious@gmail.com> - 2011-06-23 11:01 -0700

csiph-web