Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.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: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Python': 0.05; 'imply': 0.07; 'subject:missing': 0.07; 'sure,': 0.09; 'received:209.85.214.174': 0.13; '*any*': 0.16; 'arbitrarily': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:String': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'memory': 0.20; "doesn't": 0.22; 'header:In-Reply-To:1': 0.22; 'figure': 0.23; 'stefan': 0.24; 'pm,': 0.26; 'message-id:@mail.gmail.com': 0.28; '24,': 0.28; 'hash': 0.30; 'subject:?': 0.30; 'certainly': 0.32; 'received:209.85.214': 0.32; 'tue,': 0.32; 'to:addr:python- list': 0.33; 'then.': 0.34; 'something': 0.35; 'received:google.com': 0.37; 'enough': 0.37; 'received:209.85': 0.38; 'received:209': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'data': 0.40; 'bring': 0.60; 'order': 0.60; 'provided': 0.61; 'harder': 0.64; 'subject:moved': 0.84 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=1oEXGhKPIohC8mpBtOAs1cvyUUnvdFXfcb8ZJIOqLZ8=; b=iwq2rZ05kSe9MjXpfutRnW2XC75a8PD+nNxG6RYWbssJdrWPN1nhVyyFC0XC0Ypr2p LKphecRUsFRIj96RRVXm3tbY3C79eH46GxLAxa9SbImmz7TeKBfb1s/MNtP/gbvMCqCM 9IDEnwIwTKuaM1QK8acI6g3AdTzMlHaqhNJvg= MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 24 Jan 2012 19:31:29 +1100 Subject: Re: String interning in Python 3 - missing or moved? From: Chris Angelico To: python-list@python.org 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327393892 news.xs4all.nl 6932 [2001:888:2000:d::a6]:51059 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19331 On Tue, Jan 24, 2012 at 7:17 PM, Stefan Behnel wrote: > If you want to encourage them to fill up their memory with user provided > data in a non-erasable way, then sure, that would certainly keep an > attacker from having to figure out hash collisions in order to bring down a > system. Sending *any* arbitrarily varied data would be enough then. Interning doesn't have to imply non-erasable. And filling memory is a LOT harder than slowing something down with O(n^2) hashtable worst-casing. ChrisA