Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; '75,': 0.09; 'wrong,': 0.09; 'cc:addr:python-list': 0.11; '105,': 0.16; '33,': 0.16; '42,': 0.16; '49,': 0.16; '55,': 0.16; '57,': 0.16; '60,': 0.16; '61,': 0.16; '66,': 0.16; '89,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'json,': 0.16; 'sat,': 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; '13,': 0.31; 'file': 0.32; 'probably': 0.32; 'open': 0.33; "i'd": 0.34; 'case,': 0.35; 'received:google.com': 0.35; 'list': 0.37; 'anything': 0.39; '12,': 0.39; 'simple': 0.61; '2015': 0.84; '81,': 0.84; '88,': 0.84; '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=ulCuFuOaRvDnbaTC/nb+g10g5Kd/1QkwLuW+VhvEnT4=; b=hiZNYkIquevwtKiN+FgeOPCqf5FFBbB7/hOHL0L4iT7IKAiY3KnV0z1Sfi39MX2Rrx mYqN8p14EB+XTo8o70/WbNJiJZR/Wkk4QJT0NyvL/F+dMoa+0aDMhsUGOAsJe+/wo3y3 Uy7X0CNpSXXqBiIpQgr4KesRQEeSsav1t114FYpaDm3TsmdPbloD/Lf5nWqB6Lfe/bXt d0IkAdAGd+WyvIKe2YK8yicLcq0ANWlSZ+47nkolHDxaJW2wYfowBm7tU9cjwSvpW7+1 bCHCm3KScKvfVAmd3xLe8aJ5WZ7ZrhJH8x0A+Qdc0dVG138EqiI0UB7qvq1HXQPAgn5q OThw== MIME-Version: 1.0 X-Received: by 10.107.160.202 with SMTP id j193mr5623920ioe.43.1431097910595; Fri, 08 May 2015 08:11:50 -0700 (PDT) In-Reply-To: <87zj5fxhm5.fsf@Equus.decebal.nl> References: <87h9rnz8yy.fsf@Equus.decebal.nl> <554c95df$0$12988$c3e8da3$5496439d@news.astraweb.com> <878uczz3ks.fsf@Equus.decebal.nl> <87zj5fxhm5.fsf@Equus.decebal.nl> Date: Sat, 9 May 2015 01:11:50 +1000 Subject: Re: To pickle or not to pickle 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1431097914 news.xs4all.nl 2907 [2001:888:2000:d::a6]:51638 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:90174 On Sat, May 9, 2015 at 12:34 AM, Cecil Westerhof wrote: > When I unpickle quotes.pickle I get: > [25, 112, 4, 18, 41, 2, 81, 75, 28, 60, 105, 47, 84, 65, 103, 42, > 13, 66, 55, 124, 6, 82, 76, 12, 61, 113, 119, 96, 3, 68, 11, 89, > 98, 107, 118, 29, 57, 33, 88, 121, 110, 49, 90, 72, 87, 114, 43, > 59, 8, 92] > > Very simple indeed. In that case, I'd probably write it out as JSON, or as a simple whitespace-separated list of numbers. That way, if anything goes wrong, you can open up the file and look at it easily. ChrisA