Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '336': 0.16; "['a',": 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'received:comcast.net': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; '>>>>': 0.31; 'subject:size': 0.31; 'this.': 0.32; 'skip:s 30': 0.35; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'guarantee': 0.63; 'email addr:gmail.com': 0.63; 'euro': 0.69; '5:15': 0.84; '150': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Batchelder Subject: Re: Finding size of Variable Date: Thu, 06 Feb 2014 06:10:08 -0500 References: <8e4c1ab1-e65d-483f-ad9d-6933ae2052c3@googlegroups.com> <7e7d3200-a4ae-4842-ad8d-68b4435b9006@googlegroups.com> <52f219c5$0$29972$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: c-50-133-228-126.hsd1.ma.comcast.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391685020 news.xs4all.nl 2948 [2001:888:2000:d::a6]:37275 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65529 On 2/6/14 5:15 AM, wxjmfauth@gmail.com wrote: >>>> >>>> sum([sys.getsizeof(c) for c in ['a', 'a EURO', 'aa EURO']*3]) > 336 >>>> sum([sys.getsizeof(c) for c in ['aa EURO aa EURO']*3]) > 150 >>>> sum([sys.getsizeof(c.encode('utf-32')) for c in ['a', 'a EURO', 'aa EURO']*3]) > 261 >>>> sum([sys.getsizeof(c.encode('utf-32')) for c in ['aa EURO aa EURO']*3]) > 135 >>>> > > jmf > JMF, we've told you I-don't-know-how-many-times to stop this. Seriously: think hard about what your purpose is in sending these absurd benchmarks. I guarantee you are not accomplishing it. -- Ned Batchelder, http://nedbatchelder.com