Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'else:': 0.03; 'subject:Python': 0.06; 'back.': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; 'posted': 0.15; '"it\'s': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'thoughts': 0.19; 'example': 0.22; 'header:User-Agent:1': 0.23; 'string,': 0.24; 'unicode': 0.24; 'second': 0.26; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'you?': 0.31; 'inspect': 0.31; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'short': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'days': 0.60; 'entire': 0.61; 'received:173': 0.61; 'complete': 0.62; 'charset:windows-1252': 0.65; 'dont': 0.67; 'smith': 0.68; 'compose': 0.84; 'it"': 0.84; 'subject:long': 0.84; 'rusi': 0.91; 'ultimate': 0.93 Date: Wed, 03 Apr 2013 10:09:13 -0700 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Performance of int/long in Python 3 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> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator410.hostgator.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stoneleaf.us X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([173.12.184.235]) [173.12.184.235]:39218 X-Source-Auth: ethan+stoneleaf.us X-Email-Count: 2 X-Source-Cap: dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== 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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1365009475 news.xs4all.nl 6924 [2001:888:2000:d::a6]:60811 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42689 On 04/03/2013 09:10 AM, rusi wrote: > On Apr 3, 6:43 pm, Roy Smith wrote: >> This has to inspect the entire string, no? I posted (essentially) this >> a few days ago: >> >> if all(ord(c) <= 0xffff for c in s): >> return "it's all bmp" >> else: >> return "it's got astral crap in it" > > Astral crap? CRAP? > Verily sir I am offended! > > You dont play with Mahjong characters? How crude! > You dont know about cuneiform? How illiterate! > You dont compose poetry with Egyptian hieroglyphs? How rude! > Shavian has not reformed you? How backward! > > In short you are a complete philistine > No… On second thoughts I take that back. For all we know philistine > may be one of the blessings of the Unicode gods? > So following the ilustrious example of jmf, I shall pronounce upon you > the ultimate curse: > > You are American! LOL!