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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:module': 0.04; 'library,': 0.05; 'sanity': 0.07; 'python': 0.08; 'context:': 0.09; 'conventions.': 0.09; 'url:peps': 0.09; 'code).': 0.16; 'nabble.com.': 0.16; 'really.': 0.16; 'received:192.168.236': 0.16; 'received:216.139': 0.16; 'received:216.139.236': 0.16; 'received:nabble.com': 0.16; 'url:nabble': 0.16; 'url:pep-0008': 0.16; 'archive': 0.21; 'wrote': 0.21; 'header:In-Reply-To:1': 0.22; 'pep': 0.23; 'url:dev': 0.23; 'writes:': 0.25; 'code': 0.26; 'import': 0.27; '-----': 0.28; 'url:gt': 0.30; 'error': 0.30; 'list': 0.32; 'thank': 0.35; 'to:addr:python-list': 0.35; 'url:python': 0.35; 'skip:& 10': 0.37; 'but': 0.37; 'charset:us- ascii': 0.37; 'received:192': 0.38; 'url:org': 0.39; 'mailing': 0.39; 'recommended': 0.39; 'to:addr:python.org': 0.40; 'view': 0.61; 'due': 0.66; 'subject:Read': 0.91 Date: Thu, 9 Feb 2012 08:44:33 -0800 (PST) From: mloskot To: python-list@python.org In-Reply-To: <878vkc426c.fsf@benfinney.id.au> References: <878vkc426c.fsf@benfinney.id.au> Subject: Re: Read-only attribute in module MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328805883 news.xs4all.nl 6923 [2001:888:2000:d::a6]:59619 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20087 Ben Finney-10 wrote > > Mateusz Loskot <mateusz@> writes: > >> So, the following >> >> import xyz >> print(xyz.flag) # OK >> xyz.flag = 0 # error due to no write access > > PEP 8 <URL:http://www.python.org/dev/peps/pep-0008/> gives the style > guide for Python code (strictly for the standard library, but it is > recommended for all Python code). > Ben, That's what I thought really. Thank you for confirming the sanity of the style-powered conventions. Best regards, ----- -- Mateusz Loskot http://mateusz.loskot.net -- View this message in context: http://python.6.n6.nabble.com/Read-only-attribute-in-module-tp4378950p4380150.html Sent from the Python - python-list mailing list archive at Nabble.com.