X-Received: by 10.50.36.68 with SMTP id o4mr15000114igj.7.1457457790389; Tue, 08 Mar 2016 09:23:10 -0800 (PST) X-Received: by 10.50.109.230 with SMTP id hv6mr361261igb.2.1457457790369; Tue, 08 Mar 2016 09:23:10 -0800 (PST) Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!hb3no12562689igb.0!news-out.google.com!pn7ni4008igb.0!nntp.google.com!hb3no12562682igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Tue, 8 Mar 2016 09:23:09 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1205:c6aa:8190:5c21:d1d0:1b43:c4eb; posting-account=ung4FAoAAAC46zhHJ0Nsnuox7M5gDvs_ NNTP-Posting-Host: 2a02:1205:c6aa:8190:5c21:d1d0:1b43:c4eb References: <87d1r6iltx.fsf@elektro.pacujo.net> <56de28a1$0$1604$c3e8da3$5496439d@news.astraweb.com> <56de57b5$0$1590$c3e8da3$5496439d@news.astraweb.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8f22bffc-e29d-4e61-b7f5-934cbf1a5215@googlegroups.com> Subject: Re: Pyhon 2.x or 3.x, which is faster? From: wxjmfauth@gmail.com Injection-Date: Tue, 08 Mar 2016 17:23:10 +0000 Content-Type: text/plain; charset=ISO-8859-1 Lines: 18 Xref: csiph.com comp.lang.python:104350 This is much more interesting. >>> timeit.timeit("s = 'asdf'; 'a' in s") 0.08400959240925197 >>> timeit.timeit("s = 'asdf'; 'EURO' in s") 0.0845499432670982 versus >>> timeit.timeit("s = 'asdf'; 'a' in s") 0.12534446382583372 >>> timeit.timeit("s = 'asdf'; 'EURO' in s") 0.11553544162064178 - But why discuss? - It's only an *illustration* of the problematic. - Readers can be lucky, I'm not presenting BDFL examples. jmf