Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95764
| Path | csiph.com!news.mixmin.net!news2.arglkargh.de!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail |
|---|---|
| Return-Path | <srkunze@mail.de> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.011 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'json': 0.05; 'subject:number': 0.07; 'subject:both': 0.09; 'python': 0.10; 'output': 0.13; 'file,': 0.15; 'subject:)?': 0.16; 'yaml': 0.16; 'wrote:': 0.16; 'input': 0.18; 'to:2**1': 0.21; 'parse': 0.22; 'parsing': 0.22; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'switch': 0.27; 'to:no real name:2**1': 0.27; "i'm": 0.30; 'instead,': 0.33; 'values.': 0.33; 'received:10.0': 0.34; 'so,': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'starting': 0.37; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'skip:u 10': 0.61; 'charset:windows-1252': 0.62; '"can': 0.84; 'subject:Casting': 0.84 |
| Date | Sun, 30 Aug 2015 13:38:11 +0200 |
| From | "Sven R. Kunze" <srkunze@mail.de> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org, victorhooi@gmail.com |
| Subject | Re: Casting to a "number" (both int and float)? |
| References | <0bdda01a-de29-4742-9851-0617dad602ae@googlegroups.com> <661c74bf-d038-41be-9519-2260f24ab8e2@googlegroups.com> <mailman.110.1440778178.11709.python-list@python.org> <mrq1eh$m5g$1@news.albasani.net> |
| In-Reply-To | <mrq1eh$m5g$1@news.albasani.net> |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-purgate | clean |
| X-purgate | This mail is considered clean (visit http://www.eleven.de for further information) |
| X-purgate-type | clean |
| X-purgate-Ad | Categorized by eleven eXpurgate (R) http://www.eleven.de |
| X-purgate | This mail is considered clean (visit http://www.eleven.de for further information) |
| X-purgate | clean |
| X-purgate-size | 604 |
| X-purgate-ID | 154282::1440934693-00000776-0D97B56E/0/0 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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.132.1440934703.11709.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1440934703 news.xs4all.nl 23833 [2001:888:2000:d::a6]:49370 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:95764 |
Show key headers only | View raw
Well, it comes down to "can he switch from JSON to YAML" in the first place as he is going to parse "by-third-party" generated json. So, if he can persuade MongoDB to output YAML instead, he would be all fine. Just my 2 cents. On 28.08.2015 18:15, Robin Koch wrote: > Am 28.08.2015 um 18:09 schrieb Sven R. Kunze: > > >> I'm reading JSON output from an input file, and extracting values. > > >> for proper parsing into native Python types, I would recommend YAML. > > "What's the best way to get from A to B?" > "I recommend starting at C." > > - Every other usenet-discussion. >
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Casting to a "number" (both int and float)? Victor Hooi <victorhooi@gmail.com> - 2015-08-27 21:57 -0700
Re: Casting to a "number" (both int and float)? Victor Hooi <victorhooi@gmail.com> - 2015-08-27 22:04 -0700
Re: Casting to a "number" (both int and float)? "Sven R. Kunze" <srkunze@mail.de> - 2015-08-28 18:09 +0200
Re: Casting to a "number" (both int and float)? Robin Koch <robin.koch@t-online.de> - 2015-08-28 18:15 +0200
Re: Casting to a "number" (both int and float)? "Sven R. Kunze" <srkunze@mail.de> - 2015-08-30 13:38 +0200
Re: Casting to a "number" (both int and float)? Steven D'Aprano <steve@pearwood.info> - 2015-08-30 22:00 +1000
Re: Casting to a "number" (both int and float)? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-08-30 13:55 +0100
Re: Casting to a "number" (both int and float)? Ben Finney <ben+python@benfinney.id.au> - 2015-08-28 15:44 +1000
Re: Casting to a "number" (both int and float)? Jussi Piitulainen <harvestingn@makes.address.invalid> - 2015-08-28 09:03 +0300
Re: Casting to a "number" (both int and float)? Jussi Piitulainen <harvesting@makes.address.invalid> - 2015-08-28 09:15 +0300
Re: Casting to a "number" (both int and float)? Victor Hooi <victorhooi@gmail.com> - 2015-08-28 00:56 -0700
Re: Casting to a "number" (both int and float)? Chris Angelico <rosuav@gmail.com> - 2015-08-28 19:23 +1000
Re: Casting to a "number" (both int and float)? Jussi Piitulainen <harvesting@makes.address.invalid> - 2015-08-28 08:46 +0300
Re: Casting to a "number" (both int and float)? random832@fastmail.us - 2015-08-28 01:54 -0400
Re: Casting to a "number" (both int and float)? Laura Creighton <lac@openend.se> - 2015-08-28 07:59 +0200
csiph-web