Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; ';-)': 0.03; 'memory.': 0.07; 'oh,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'agree.': 0.16; 'comma': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'somewhere.': 0.16; 'sat,': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'bytes': 0.24; 'char': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; '(on': 0.31; '>>>>': 0.31; 'know.': 0.32; 'totally': 0.33; 'problem': 0.35; 'but': 0.35; 'there': 0.35; 'belong': 0.36; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; '8bit%:6': 0.40; 'how': 0.40; 'costs': 0.63; 'become': 0.64; 'more': 0.64; 'charset:windows-1252': 0.65; '20,': 0.68; 'euro': 0.69; 'jul': 0.74; 'square': 0.74; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: Stack Overflow moderator =?windows-1252?Q?=93animuson=94?= Date: Fri, 19 Jul 2013 19:14:06 -0400 References: <51dd22a6$0$11094$c3e8da3@news.astraweb.com> <713bdf49-10ee-4694-b7c1-54beef22a922@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: 174.32.174.33 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374275706 news.xs4all.nl 15882 [2001:888:2000:d::a6]:41806 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50931 On 07/19/2013 06:35 PM, Chris Angelico wrote: > On Sat, Jul 20, 2013 at 4:54 AM, wrote: >> And do not forget memory. The €uro just become expensive. >> >>>>> sys.getsizeof(' >> ) >> 26 >>>>> sys.getsizeof('€') >> 40 >> >> I do not know. When an €uro char need 14 bytes more that >> a dollar, I belong to those who thing there is a problem >> somewhere. > > Oh, I totally agree. But it's not just the Euro symbol that's > expensive. Look how much I have to pay for a couple of square > brackets! > >>>> sys.getsizeof((1)) > 14 >>>> sys.getsizeof([1]) > 40 > And look how much a comma costs us (on 64bit 3.3): >>> sys.getsizeof((1)) 28 >>> sys.getsizeof((1,)) 64 >>> sys.getsizeof([1]) 80 ;-) -- DaveA