Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.104 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.85; '*S*': 0.06; 'subject:Python': 0.06; 'python': 0.11; 'code?': 0.16; 'crop': 0.16; 'evaluates': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hashes': 0.16; 'hexadecimal': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'url:02': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'problem': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'skip:a 30': 0.61; 'situation': 0.65; 'production': 0.68; 'url:11': 0.68; 'url:2011': 0.75; 'treatment': 0.95; 'serious': 0.97; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qWd355N3FzXioTPOOJlFijlKLI4iVF8kBUjFNqi1Rc8=; b=roPkzdoIU6O6uAhjZKztooCeF6p+C6A3CmMz3PsQJkO6nSCGyDDbrnVo99tvDDa4nG hbZaaqGziFEwH8LxO9/qvUPvZHIIFEZjgcZY4I/NDfpXSYfBh1Bgs2bDDetF/lSmc8I/ s/pmAWhPca3O1cZvZUSD8CZjnu/Rss9VfWCdX/gx6eHvNqyrEmATMZDWtr6jd1AChMRx QacHmq38VXuEFTgzhVFS6Wt0o35FHgSmS3/O1JfKd3Bj90D8iGRYLiWt/lfxWVeFrQMt BKhkFmP4oCc99HQX0ToQsPhg5+6BIY2wriQuHqjG/2zyuwnhprkqmdsuZpuanJBned+i +wyw== MIME-Version: 1.0 X-Received: by 10.66.148.97 with SMTP id tr1mr7011094pab.163.1381380611120; Wed, 09 Oct 2013 21:50:11 -0700 (PDT) In-Reply-To: <52562ee3$0$2931$c3e8da3$76491128@news.astraweb.com> References: <52562ee3$0$2931$c3e8da3$76491128@news.astraweb.com> Date: Thu, 10 Oct 2013 15:50:11 +1100 Subject: Re: I am never going to complain about Python again From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1381380623 news.xs4all.nl 15951 [2001:888:2000:d::a6]:42108 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:56536 On Thu, Oct 10, 2013 at 3:36 PM, Steven D'Aprano wrote: > Just came across this little Javascript gem: > > ",,," == Array((null,'cool',false,NaN,4)); > > => evaluates as true > > http://wtfjs.com/2011/02/11/all-your-commas-are-belong-to-Array > > I swear, I am never going to complain about Python again. *blank look* Wow. Now, is there a situation in which this problem can actually crop up in production code? And is it as serious as PHP's treatment of hexadecimal hashes (eg that "100"== "1E2")? ChrisA