Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72076

Re: Verify JSON Data

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 <rosuav@gmail.com>
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 <roy-89A928.11552926052014@news.panix.com>
References <e26d3f14-ac97-4abd-bdfc-699d9ed2175c@googlegroups.com> <roy-CA8FC6.11195326052014@news.panix.com> <mailman.10347.1401119046.18130.python-list@python.org> <roy-89A928.11552926052014@news.panix.com>
Date Tue, 27 May 2014 02:02:00 +1000
Subject Re: Verify JSON Data
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10350.1401120128.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Tue, May 27, 2014 at 1:55 AM, Roy Smith <roy@panix.com> wrote:
> In article <mailman.10347.1401119046.18130.python-list@python.org>,
>  Gene Heskett <gheskett@shentel.net> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Verify JSON Data gaurangnshah@gmail.com - 2014-05-26 07:26 -0700
  Re: Verify JSON Data Roy Smith <roy@panix.com> - 2014-05-26 11:19 -0400
    Re: Verify JSON Data Gene Heskett <gheskett@shentel.net> - 2014-05-26 11:37 -0400
      Re: Verify JSON Data Roy Smith <roy@panix.com> - 2014-05-26 11:55 -0400
        Re: Verify JSON Data Chris Angelico <rosuav@gmail.com> - 2014-05-27 02:02 +1000
        Re: Verify JSON Data Gene Heskett <gheskett@shentel.net> - 2014-05-26 12:43 -0400
    Re: Verify JSON Data Chris Angelico <rosuav@gmail.com> - 2014-05-27 01:58 +1000
    Re: Verify JSON Data Chris Angelico <rosuav@gmail.com> - 2014-05-27 02:00 +1000
  Re: Verify JSON Data Burak Arslan <burak.arslan@arskom.com.tr> - 2014-05-26 17:28 +0200
  Re: Verify JSON Data Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-26 15:43 +0000
  Re: Verify JSON Data Gene Heskett <gheskett@shentel.net> - 2014-05-26 12:44 -0400
  Re: Verify JSON Data Grant Edwards <invalid@invalid.invalid> - 2014-05-26 18:35 +0000
    Re: Verify JSON Data Rustom Mody <rustompmody@gmail.com> - 2014-05-26 21:28 -0700

csiph-web