Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!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.117 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.77; '*S*': 0.00; 'python': 0.08; 'tuple': 0.09; 'builtins.': 0.16; 'header:In-Reply-To:1': 0.22; 'import': 0.27; 'message-id:@mail.gmail.com': 0.29; 'received:209.85.210.46': 0.30; 'received:mail- pz0-f46.google.com': 0.30; 'there': 0.33; 'it.': 0.33; 'too': 0.33; 'anything': 0.34; 'to:addr:python-list': 0.35; 'sets': 0.35; 'question': 0.36; 'to:name:python-list': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'useful': 0.38; 'should': 0.38; 'received:209': 0.39; 'put': 0.40; 'to:addr:python.org': 0.40; 'one,': 0.40; 'nathan': 0.84; 'items,': 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 :content-type; bh=tr3I70vDn0Y15iLUKg4TR7T5foGJbsjSBtTog3tu7MI=; b=ExTTOpFlR+JzSzOdnfqcYQVLojsIixNq/Va9wHjYEe0NITWdXjwYc4CqAoDYyDTYnP GXXvSDI7pjBXOrt2lJEluqIalY54/MXZ9eGNEEQtsHdAIoWgsCPTahqPUYirEgQ5FmEv ux1R7Egdkbc38Zje1KG0HtLVEVKx87oQpxkIc= MIME-Version: 1.0 In-Reply-To: References: <4F332007.9080800@wisc.edu> Date: Wed, 8 Feb 2012 22:43:33 -0500 Subject: Re: frozendict From: Nathan Rice To: python-list Content-Type: text/plain; charset=ISO-8859-1 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328759017 news.xs4all.nl 6850 [2001:888:2000:d::a6]:38860 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:20043 > Turn the question around: why should there be? > Python is intentionally parsimonious in adding builtins. For the same reason there are frozensets? I put dicts in sets all the time. I just tuple the items, but that means you have to re-dict it on the way out to do anything useful with it. I am too lazy to write a frozendict or import one, but I would use it if it was a builtin. Nathan