Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38695
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!news2.euro.net!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.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'mrab': 0.05; 'say,': 0.05; 'happen,': 0.07; 'json': 0.07; 'length.': 0.09; 'received:mail-vc0-f174.google.com': 0.09; "wouldn't": 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'integer.': 0.16; 'wrote:': 0.17; 'feb': 0.19; 'followed': 0.20; "i'd": 0.22; 'insert': 0.23; 'header:In-Reply- To:1': 0.25; '(which': 0.26; 'am,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'fixed': 0.28; 'decimal': 0.29; 'received:209.85.220.174': 0.29; 'probably': 0.29; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'received:209.85.220': 0.35; 'received:209.85': 0.35; '12,': 0.36; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'space': 0.39; 'your': 0.60; 'ever': 0.63; '2013': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=1hRAdBtTzYAct9sDq0uiEXwuqt8lZNlToVRSwCmjfd0=; b=aBpjXhu9d0vKAsFYDNMuFD8Fzz5YlqfRdOblz0FKvClhBTpyj92u3g+CNhRTm/UHxt Sb+3oY0d4XBs+dAi9DVBSC9sekGebnwjzmDBklRFUNqMrGu01E2SPGmE5ArRc19RYLbW J8LqExG1890rrsUoY8VY6VyKhg44nzZBQmMymtBXMeEVh8B6a+GZFooe2cRQ+sdQ+jOs OODjv/TuJzCrXaP/SbjBcwD1pJhMBuU2rZgefJLniSUl1JoZx32k5XQn268QEtl8Ecoe f3pTksVT7tfdg3HGAYOPfIorhPjGDk+uMa/Ar+Cs14Bow1sl1hrXR/21OaYzmBOsiXYK U6eQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.52.67.164 with SMTP id o4mr1533731vdt.42.1360596247475; Mon, 11 Feb 2013 07:24:07 -0800 (PST) |
| In-Reply-To | <51190A32.7070105@mrabarnett.plus.com> |
| References | <mailman.1612.1360544258.2939.python-list@python.org> <roy-CC4632.21243210022013@news.panix.com> <E4DA0A42-324E-43D0-A366-21267C538D5D@grep.my> <51190A32.7070105@mrabarnett.plus.com> |
| Date | Tue, 12 Feb 2013 02:24:07 +1100 |
| Subject | Re: Python recv loop |
| From | Chris Angelico <rosuav@gmail.com> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1660.1360596251.2939.python-list@python.org> (permalink) |
| Lines | 10 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1360596251 news.xs4all.nl 6959 [2001:888:2000:d::a6]:54364 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:38695 |
Show key headers only | View raw
On Tue, Feb 12, 2013 at 2:11 AM, MRAB <python@mrabarnett.plus.com> wrote: > I probably wouldn't make it fixed length. I'd have the length in > decimal followed by, say, "\n". Or even "followed by any non-digit". Chances are your JSON data begins with a non-digit, so you'd just have to insert a space in the event that you're JSON-encoding a flat integer. (Which might not ever happen, if you know that your data will always be an object.) ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python recv loop Ihsan Junaidi Ibrahim <ihsan@grep.my> - 2013-02-11 08:48 +0800
Re: Python recv loop Roy Smith <roy@panix.com> - 2013-02-10 21:24 -0500
Re: Python recv loop Ihsan Junaidi Ibrahim <ihsan@grep.my> - 2013-02-11 22:56 +0800
Re: Python recv loop Roy Smith <roy@panix.com> - 2013-02-11 21:44 -0500
Re: Python recv loop MRAB <python@mrabarnett.plus.com> - 2013-02-11 15:11 +0000
Re: Python recv loop Chris Angelico <rosuav@gmail.com> - 2013-02-12 02:24 +1100
Re: Python recv loop Ihsan Junaidi Ibrahim <ihsan@grep.my> - 2013-02-12 09:41 +0800
Re: Python recv loop Chris Angelico <rosuav@gmail.com> - 2013-02-12 13:20 +1100
Re: Python recv loop MRAB <python@mrabarnett.plus.com> - 2013-02-12 03:09 +0000
csiph-web