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


Groups > comp.lang.python > #8243

Re: python 3 constant

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python,': 0.01; 'wed,': 0.03; 'pep': 0.07; 'python': 0.08; 'pm,': 0.10; 'wrote:': 0.14; 'subject:python': 0.14; 'defined': 0.14; '3.14': 0.16; 'constants': 0.16; 'to:addr:comp.lang.python': 0.16; 'received:74.125.82.174': 0.16; 'received:mail- wy0-f174.google.com': 0.16; 'cc:addr:python-list': 0.17; 'header :In-Reply-To:1': 0.21; "aren't": 0.22; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'message-id:@mail.gmail.com': 0.28; 'opposed': 0.29; 'instead': 0.29; 'cc:addr:python.org': 0.30; 'example,': 0.35; 'there': 0.35; 'constant': 0.35; 'received:google.com': 0.37; 'change': 0.37; 'received:74.125.82': 0.38; 'received:74.125': 0.38; 'could': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'to:addr:googlegroups.com': 0.63; 'states': 0.67; '(according': 0.84
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; bh=teTVydoCyZLyCCFBRT/VLwKFrNeawqjNCLulbTkaWwE=; b=OcrF8phTXGBD88GooroVqSdd9gJetACa5+T4HstUxEFMhyexvvyU8ICY1+CuXOzgAQ IHwggv/yv8ksuJH4tGV2A0/cs/WaQVuxEkoDO/AtD+1spSdq5RjyFzw/WtrdlHyE7riW YWEU/mrR14B68gr1y+oJ8lEEBLq7z4bYmsP7c=
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; b=eN44patsA2ZE/T8kjA0YcWZZ0R922kG5k7nRfRmdyj9wVyB2jFZSCqw4uDO2BpPFoU EY6HiVKREEBPPL1zqpTs1jwgVVROtK42xWoNWpzMeB8KwUmMA7GmL9HUP1WNPXoqU9GX N/F3arHkbPJ9tyA8ISa3kpWQzIKdkmwqIAOx0=
MIME-Version 1.0
In-Reply-To <927fca1e-ca72-4d33-965c-70b812b83d50@glegroupsg2000goo.googlegroups.com>
References <927fca1e-ca72-4d33-965c-70b812b83d50@glegroupsg2000goo.googlegroups.com>
From Noah Hall <enalicho@gmail.com>
Date Wed, 22 Jun 2011 22:17:49 +0100
Subject Re: python 3 constant
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
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.301.1308777491.1164.python-list@python.org> (permalink)
Lines 7
NNTP-Posting-Host 82.94.164.166
X-Trace 1308777491 news.xs4all.nl 14136 [::ffff:82.94.164.166]:47356
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8243

Show key headers only | View raw


On Wed, Jun 22, 2011 at 7:54 PM, sidRo <slacky2005@gmail.com> wrote:
> How to declare a constant in python 3?

There aren't true constants in Python, but instead we use a standard
defined by PEP 8, which states constants are in all caps, for example,
PI = 3.14, as opposed to pi = 3.14 which could change (according to
PEP 8, that is)

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


Thread

python 3 constant sidRo <slacky2005@gmail.com> - 2011-06-22 11:54 -0700
  Re: python 3 constant Noah Hall <enalicho@gmail.com> - 2011-06-22 22:17 +0100
    Re: python 3 constant "Waldek M." <wm@localhost.localdomain> - 2011-06-23 08:40 +0200
      Re: python 3 constant Ben Finney <ben+python@benfinney.id.au> - 2011-06-23 17:22 +1000
        Re: python 3 constant "Waldek M." <wm@localhost.localdomain> - 2011-06-23 13:58 +0200
          Re: python 3 constant Ben Finney <ben+python@benfinney.id.au> - 2011-06-23 23:04 +1000
            Re: python 3 constant "Waldek M." <wm@localhost.localdomain> - 2011-06-25 12:42 +0200
          Re: python 3 constant Chris Angelico <rosuav@gmail.com> - 2011-06-24 01:29 +1000
            Re: python 3 constant "Waldek M." <wm@localhost.localdomain> - 2011-06-23 21:56 +0200
              Re: python 3 constant Chris Angelico <rosuav@gmail.com> - 2011-06-24 08:00 +1000
                Re: python 3 constant "Waldek M." <wm@localhost.localdomain> - 2011-06-25 12:50 +0200
                Re: python 3 constant Chris Angelico <rosuav@gmail.com> - 2011-06-25 20:59 +1000
                Re: python 3 constant "Waldek M." <wm@localhost.localdomain> - 2011-06-25 13:24 +0200
              Re: python 3 constant alex23 <wuwei23@gmail.com> - 2011-06-23 20:04 -0700
                Re: python 3 constant "Waldek M." <wm@localhost.localdomain> - 2011-06-25 12:44 +0200

csiph-web