Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3a.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.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'python': 0.11; '127': 0.16; '255': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; ':-)': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'is.': 0.60; 'smith': 0.68; 'article': 0.77; 'to:none': 0.92 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:cc :content-type; bh=GjQKVdVQSOAWnQR0/Y4R0OisyEPak0V4uM4pSswWcWQ=; b=nYAcR18VNWbXqMAqo2qTncYi2FBXlXynFFFU5ApSxaBVdpBwYJg8chZ5WbjPgQ2rsa P0iyEDrL93DBKBD6pwGpIvvwv6NMYNVBPl5iEpCvuqGiQ1eQI5CjDYzF905/FlD/Vvwc 0vcUvGlSlKXXQs7S8MOUhlJeqvpi11hQjuOwZmJgBdexTgslgI/GUMm17hM6TDEz+b6x UR6NUnm3b/YFBN4dwdvcdkRtIBoyfeNCZQLVZY+7jK/Q4fAHIWK2EuJacjfeKb1sdD55 XrBybcCk+SwBNCWJC9qtSQrNH5iwuwq07G6pvM+eixDfqSb2ZWY5UrdGXM1lXhOm961H XJUQ== MIME-Version: 1.0 X-Received: by 10.220.249.6 with SMTP id mi6mr8595660vcb.33.1401120120218; Mon, 26 May 2014 09:02:00 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 May 2014 02:02:00 +1000 Subject: Re: Verify JSON Data From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401120128 news.xs4all.nl 2841 [2001:888:2000:d::a6]:40239 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72076 On Tue, May 27, 2014 at 1:55 AM, Roy Smith wrote: > In article , > Gene Heskett wrote: > >> > $ echo '[1, 2, 3]' | json_xs -t null 2>/dev/null; echo $? >> 0 > >> > $ echo '[1; 2, 3]' | json_xs -t null 2>/dev/null; echo $? >> 255 > > >> gene@coyote:~$ echo '[1, 2, 3]' | json_xs -t null 2>/dev/null; echo $? >> 127 >> gene@coyote:~$ echo '[1; 2, 3]' | json_xs -t null 2>/dev/null; echo $? >> 127 > > I don't see what the problem is. On average, we got the same result :-) Ahh but if you were using Python 3, those averages would be 127.5 each. ChrisA