Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'attributes': 0.09; 'keys,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Why': 0.09; 'identifiers,': 0.16; 'keyed': 0.16; "object's": 0.16; 'piotr': 0.16; 'received:24.125': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:accessing': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'things.': 0.19; 'header:User-Agent:1': 0.23; 'received:comcast.net': 0.24; 'right.': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'received:24': 0.27; 'dec': 0.30; 'keys': 0.31; 'quite': 0.32; 'subject:with': 0.35; 'problem.': 0.35; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'different': 0.65; 'subject:there': 0.68; 'subjectcharset:utf-8': 0.72; 'dict.': 0.84; 'subject:being': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: =?UTF-8?Q?Re:_Why_is_there_no_natural_syntax_for_accessing_a?= =?UTF-8?Q?ttributes_with=0A_names_not_being_valid_identifiers=3F?= Date: Wed, 04 Dec 2013 17:28:02 -0500 References: <15912943-29a1-4365-b027-7bb8cec447f8@googlegroups.com> <15912943-29a1-4365-b027-7bb8cec447f8@googlegroups.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: c-24-125-155-83.hsd1.va.comcast.net In-Reply-To: User-Agent: Groundhog Newsreader for Android X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1386196030 news.xs4all.nl 2848 [2001:888:2000:d::a6]:51069 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61058 On Wed, 4 Dec 2013 14:05:11 -0800 (PST), Piotr Dobrogost wrote: > Object's attributes and dictionary's keys are quite different things. Right. So if you need arbitrary keys, use a dict. Attributes are keyed by identifiers, which are constrained. No problem. -- DaveA