Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2a.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.027 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'str,': 0.09; 'cc:addr :python-list': 0.10; 'python': 0.11; 'syntax': 0.13; 'wed,': 0.15; '"human': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'json,': 0.16; 'readable': 0.16; 'subject:make': 0.16; 'tool.': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'int,': 0.22; 'subject:request': 0.22; '2015': 0.23; 'header:In-Reply-To:1': 0.24; 'data,': 0.27; 'message-id:@mail.gmail.com': 0.28; 'subject:/': 0.29; "i'm": 0.29; '(it': 0.29; 'buffers': 0.29; 'protocols': 0.29; 'point': 0.33; 'common': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'received:google.com': 0.34; 'protocol': 0.35; 'but': 0.36; 'text': 0.36; 'data.': 0.36; 'subject:: ': 0.37; 'tue,': 0.38; 'is,': 0.38; 'pm,': 0.39; 'data': 0.40; 'sure': 0.40; 'skip:u 10': 0.62; 'is.': 0.63; 'chrisa': 0.84; 'dict.': 0.84; 'subject:read': 0.84; 'subject:write': 0.84; 'to/from': 0.84; 'to:none': 0.90 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=7b6WD1ASQdAzMq1ICE+Ii0DfO4baKgQuTH8hpyP1sHU=; b=jhKXIk01waomw7d7RdP90zCA+w9MgyQT/dW+WoZ+3Z2A1H2ji13S6h14ZJ1jBykSAz U2iw1kI+yxZdW8u91bzbMBC49o+5xqPLU6dyIxymP/xPSc2cHwBcxKaAy2ch7AncdJlE XSwsWapG9Lnsk9OxWViUkcsRUxhEjFodNCE3HpwwePUV7spICkJm+PGb8sKlzEFVtFF1 ZSLWKrlkm5VX5ZuxvoDu9L0KfXs4fWP3muh5HsMacYfKe+Q7ciIygB934SMWi9daxw8Y lhJ4p/ZjEOZ6XRFQy8aRcPrOucrYEYSuWK86vWs8PdhtF2kvAk0oOsDc7MOwYxPRT/9A pO1A== MIME-Version: 1.0 X-Received: by 10.43.159.193 with SMTP id lz1mr2468788icc.26.1433908855981; Tue, 09 Jun 2015 21:00:55 -0700 (PDT) In-Reply-To: <1433908629.3534335.291461817.33072CF3@webmail.messagingengine.com> References: <55778208$0$2899$e4fe514c@news2.news.xs4all.nl> <5577b46d$0$12975$c3e8da3$5496439d@news.astraweb.com> <1433908629.3534335.291461817.33072CF3@webmail.messagingengine.com> Date: Wed, 10 Jun 2015 14:00:55 +1000 Subject: Re: enhancement request: make py3 read/write py2 pickle format 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.20+ 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433908864 news.xs4all.nl 2845 [2001:888:2000:d::a6]:43708 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 4504 X-Received-Body-CRC: 2460752499 Xref: csiph.com comp.lang.python:92386 On Wed, Jun 10, 2015 at 1:57 PM, wrote: > On Tue, Jun 9, 2015, at 23:52, Steven D'Aprano wrote: >> > For human readable serialized data, text format protocol buffers are >> > seriously underrated. (Relatedly: underdocumented, too.) >> >> Ironically, literal_eval is designed to process text-format protocols >> using >> human-readable Python syntax for common data types like int, str, and >> dict. > > "protocol buffers" is the name of a specific tool. Yes, it is. But the point is that literal_eval, JSON, and other such tools are _also_ text-format protocols that serialize to/from human readable data. I'm not sure what the advantage of protocol buffers is, but it's not like "human readable" is such a rarity. (It is still a strike against pickle.) ChrisA