Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.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.036 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'cpython': 0.05; 'subject:Python': 0.06; 'string': 0.09; 'sys,': 0.09; 'python': 0.11; 'devs': 0.16; 'mean,': 0.16; 'opened.': 0.16; 'url:gmane': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'discussion': 0.18; '>>>': 0.22; "aren't": 0.24; 'stopping': 0.24; 'extension': 0.26; 'subject:/': 0.26; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'chris': 0.29; 'url:bugs': 0.29; 'message- id:@mail.gmail.com': 0.30; 'fine,': 0.31; '(including': 0.33; 'url:python': 0.33; "can't": 0.35; 'agree': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'module.': 0.36; 'much.': 0.36; 'url:org': 0.36; 'detail': 0.37; 'received:209': 0.37; 'expected': 0.38; '8bit%:86': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'weight': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'future': 0.60; 'different': 0.65; 'nobody': 0.68; 'warrant': 0.68; 'yourself': 0.78; 'subject:long': 0.84; 'versions)': 0.84; 'url:comments': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=IHvry8UjBcXbOaqfPa2Dm2aXSpGf4A+mGJvGVMl9Ds4=; b=qXpI9TKFFhUdO7BngcgLXNax+j5w+GpUolz6zN0KKRZQBxBMqg7AOlcazFe1jLK63Z AHYBFF6zBDVLkRuzDIIlhznCrPR0oMUNOKOTTEzloBCWdscs/wfJm9q9lkVgt32GOV1S 6KD1z5h0cc/oR4LtyYPyKkoaXLZxZ/GvBgrsoWKchrZUjFxkXb+t0UiIktd3O23+TFHC TF36cXRFOCncFDPr0drCCMT0G90kMXYUWZvCDNLgn+Jk6BEDfRlXIc7C9KI1ZcCf/5Ss ajnz+9u8R7IFpzcidavCl5Ti+W7r2FOrOwx0hy9cy6IkQ//Rd92rtA1NMLpdlNAaaJl+ z8nw== X-Received: by 10.66.164.6 with SMTP id ym6mr24571042pab.92.1365300081548; Sat, 06 Apr 2013 19:01:21 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <87dff083-14d8-4163-89f3-d78a9be6c802@c15g2000vbl.googlegroups.com> <3qadncD4-6fcPsbMnZ2dnUVZ_rqdnZ2d@westnet.com.au> <515bbedb$0$29891$c3e8da3$5496439d@news.astraweb.com> <515be00e$0$29891$c3e8da3$5496439d@news.astraweb.com> <515c45ad$0$29966$c3e8da3$5496439d@news.astraweb.com> From: Ian Kelly Date: Sat, 6 Apr 2013 20:00:40 -0600 Subject: Re: Performance of int/long in Python 3 To: Python Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365300092 news.xs4all.nl 6920 [2001:888:2000:d::a6]:43641 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42966 On Sat, Apr 6, 2013 at 3:24 PM, Chris Angelico wrote: > On Sat, Apr 6, 2013 at 8:09 PM, Serhiy Storchaka wr= ote: >> 04.04.13 00:57, Chris Angelico =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0= =B2(=D0=BB=D0=B0): >>> http://bugs.python.org/issue17629 opened. >> >> >> See also the discussion at >> http://comments.gmane.org/gmane.comp.python.ideas/15640 . I agree with >> rejection. This is an implementation detail and different Python >> implementations (including future CPython versions) can have different >> internal string implementations. > > I really don't see why this means that there can't be a function in > sys, or something. I mean, other Pythons aren't expected to return the > exact same values from sys.getsizeof, are they? But clearly the weight > of opinion is against me, so fine, I don't care that much. If you want it, nobody is stopping you from writing it yourself as an extension module. But I don't think the use case is strong enough to warrant the devs adding it and then having to maintain it.