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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Wed, Jun 22, 2011 at 7:54 PM, sidRo 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)