Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!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.082 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.00; 'memory.': 0.07; 'oh,': 0.09; 'cc:addr:python-list': 0.11; 'agree.': 0.16; 'brackets': 0.16; 'somewhere.': 0.16; 'sat,': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'bytes': 0.24; 'char': 0.24; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; '>>>>': 0.31; 'know.': 0.32; 'totally': 0.33; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'belong': 0.36; 'how': 0.40; 'save': 0.62; 'july': 0.63; 'become': 0.64; 'more': 0.64; 'to:addr:gmail.com': 0.65; '20,': 0.68; 'euro': 0.69; 'subjectcharset:utf-8': 0.72; 'jul': 0.74; 'square': 0.74; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=b0J5kh3wAjhHxvvaiiQbkcUZi7yKmmvji3TSEsGrKdc=; b=uzdqlE8E8TG0fPCHsBDamuGpboOZm+EQZDXJAGGQ4D5D5caDW/oJCzAN4RIzXaFeKd 9MqS5VE65ngKHvaiSwlnYdWRLn4fb/1Jq4NC+BsijQF9LDm7RasXye6P4gwQpOBB9vlc I05MmpV1eoBjJPCYTYTC/6bFii1bokbr38Zsv0PMlos2T+Nnr6NMfb+lTleVNm2biA7R RVRL/6l58JBAS4XtqNgqL+qMgBidYD4vgEBsiESdOXDZwpaz46hhyPoukyvFNiQyYDLU VucIsT2T+TjjgmmUFJZA/lj3PmMK0xX0jh6vrgUjAWORbeb7m4QH2qgi87Of4Slolx4j qGUw== X-Received: by 10.112.88.169 with SMTP id bh9mr9035307lbb.12.1374316062735; Sat, 20 Jul 2013 03:27:42 -0700 (PDT) MIME-Version: 1.0 Sender: joshua.landau.ws@gmail.com In-Reply-To: References: <51dd22a6$0$11094$c3e8da3@news.astraweb.com> <713bdf49-10ee-4694-b7c1-54beef22a922@googlegroups.com> From: Joshua Landau Date: Sat, 20 Jul 2013 11:27:01 +0100 X-Google-Sender-Auth: hKeMQI1W7EbNvcSm7rYXyXp9pGw Subject: =?UTF-8?Q?Re=3A_Stack_Overflow_moderator_=E2=80=9Canimuson=E2=80=9D?= To: Chris Angelico Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: python-list 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374316070 news.xs4all.nl 15899 [2001:888:2000:d::a6]:41407 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50958 On 19 July 2013 23:35, Chris Angelico wrote: > On Sat, Jul 20, 2013 at 4:54 AM, wrote: >> And do not forget memory. The =E2=82=ACuro just become expensive. >> >>>>> sys.getsizeof(' >> ) >> 26 >>>>> sys.getsizeof('=E2=82=AC') >> 40 >> >> I do not know. When an =E2=82=ACuro 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 But when you do it generically, square brackets save you space! >>> sys.getsizeof((int)) 392 >>> sys.getsizeof([int]) 80 :D