Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20152
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <arnodel@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'else:': 0.03; 'subject:module': 0.04; 'happily': 0.07; 'read-only': 0.07; 'terry': 0.07; 'python': 0.08; 'attributes,': 0.09; 'const': 0.09; 'exception.': 0.09; 'properties,': 0.09; 'received:209.85.214.174': 0.13; 'attributes.': 0.16; 'reedy': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'level,': 0.18; 'cc:no real name:2**0': 0.21; 'header:In-Reply- To:1': 0.22; 'cc:2**0': 0.26; 'module': 0.26; 'raise': 0.28; 'message-id:@mail.gmail.com': 0.29; 'class': 0.29; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'bare': 0.30; 'propose': 0.32; 'steven': 0.34; 'something': 0.35; 'received:209.85.214': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.38; 'think': 0.38; 'e.g.': 0.39; 'received:209': 0.39; 'cannot': 0.39; 'subject:Read': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Bu5M9zv5Rl8QeMl1XHrvCiPvkoRO0MAcTf9HmopJnfM=; b=M/Ab30XuCZH/tQJSy65579NNiiT4YV/HU6hi6xd8uUmXv0qyfY78vdPAQ/7PztZvUy e2+3mVvZUkyI1e7WhQcGIeLrXPTP7K9BRhXr8hm8bHjl0szEKxJ904ghZj7/wKNK1yzf r/c8CjmriIS+NEd22zoeYl+ClaZvHNaeKC9e4= |
| MIME-Version | 1.0 |
| In-Reply-To | <jh22s8$nrp$1@dough.gmane.org> |
| References | <mailman.5583.1328787848.27778.python-list@python.org> <878vkc426c.fsf@benfinney.id.au> <4f346d28$0$29986$c3e8da3$5496439d@news.astraweb.com> <jh22s8$nrp$1@dough.gmane.org> |
| Date | Fri, 10 Feb 2012 10:09:24 +0000 |
| Subject | Re: Read-only attribute in module |
| From | Arnaud Delobelle <arnodel@gmail.com> |
| To | Terry Reedy <tjreedy@udel.edu> |
| Content-Type | text/plain; charset=UTF-8 |
| 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.5646.1328868568.27778.python-list@python.org> (permalink) |
| Lines | 20 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1328868568 news.xs4all.nl 6949 [2001:888:2000:d::a6]:36663 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:20152 |
Show key headers only | View raw
On 10 February 2012 03:27, Terry Reedy <tjreedy@udel.edu> wrote: > On 2/9/2012 8:04 PM, Steven D'Aprano wrote: > >> Python happily violates "consenting adults" all over the place. We have >> properties, which can easily create read-only and write-once attributes. > > > So propose that propery() work at module level, for module attributes, as > well as for class attributes. I think Steven would like something else: bare names that cannot be rebound. E.g. something like: >>> const a = 42 >>> a = 7 Would raise an exception. Is that right? -- Arnaud
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Read-only attribute in module Mateusz Loskot <mateusz@loskot.net> - 2012-02-09 11:43 +0000
Re: Read-only attribute in module Ben Finney <ben+python@benfinney.id.au> - 2012-02-09 23:32 +1100
Re: Read-only attribute in module mloskot <mateusz@loskot.net> - 2012-02-09 08:44 -0800
Re: Read-only attribute in module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-10 01:04 +0000
Re: Read-only attribute in module Terry Reedy <tjreedy@udel.edu> - 2012-02-09 22:27 -0500
Re: Read-only attribute in module Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-10 22:23 +0000
Re: Read-only attribute in module Arnaud Delobelle <arnodel@gmail.com> - 2012-02-10 10:09 +0000
csiph-web