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


Groups > comp.lang.python > #51325

Re: dump a multi dimensional dictionary

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed4.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.185
X-Spam-Level *
X-Spam-Evidence '*H*': 0.67; '*S*': 0.05; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mylist': 0.16; 'tuple.': 0.16; 'tuples,': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'pickle': 0.31; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'problems': 0.38; 'to:addr:python-list': 0.38; 'list,': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'worth': 0.66; 'side': 0.67; '26,': 0.68; 'jul': 0.74; 'difference.': 0.84; '2013': 0.98
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:to :content-type; bh=rXsjKAvFQkjrPRCIA5/kALiT5CRpT15DBzBU20rgYio=; b=T9fS/ufd5TOXPZKi7YvuBHuXYmWEgH463QFh7iaa5yIw+LM9xOhk6baPJRRCYxrejk tNE4mjXiCBieP9oPsd8NUZWh4QZFbUfofqsUDUQk/zB+NK+uN8x536ogYwDew+p+iDZU A3k11dULY7DxcDCLGnatylJhvsx7x4Qc7WnFLpSEZUiEOF+gS7YQq5Ea+a5OG5Wgdcmu 2ghfqBPymsCbjeiFzUvUKMOxYbFh41KoePxTAu/IPTixK1811qpDSsGAs7aXB1BEe2yT tYTfieqWavB/Ckq/JopYJ7R3UmIfCNwqKfKCrf7PA7v1q2xp0MxBmWsEsaXcNj1SQGRc bIAg==
MIME-Version 1.0
X-Received by 10.52.163.165 with SMTP id yj5mr8412565vdb.104.1374881638674; Fri, 26 Jul 2013 16:33:58 -0700 (PDT)
In-Reply-To <efdc6f6b-c061-4d3d-9d02-c397f8953d93@googlegroups.com>
References <efdc6f6b-c061-4d3d-9d02-c397f8953d93@googlegroups.com>
Date Sat, 27 Jul 2013 00:33:58 +0100
Subject Re: dump a multi dimensional dictionary
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.5159.1374881646.3114.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1374881646 news.xs4all.nl 15954 [2001:888:2000:d::a6]:42864
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:51325

Show key headers only | View raw


On Fri, Jul 26, 2013 at 9:21 PM, cerr <ron.eggler@gmail.com> wrote:
>     >>> mylist = []
>     >>> mydict = {}
>     >>> mylist = '1','2'


Side point: mylist is no longer a list, it's a tuple. I don't think
pickle has problems with tuples, but it's worth noting that
difference.

ChrisA

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


Thread

dump a multi dimensional dictionary cerr <ron.eggler@gmail.com> - 2013-07-26 13:21 -0700
  Re: dump a multi dimensional dictionary John Gordon <gordon@panix.com> - 2013-07-26 21:00 +0000
  RE: dump a multi dimensional dictionary "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2013-07-26 20:40 +0000
  Re: dump a multi dimensional dictionary Chris Angelico <rosuav@gmail.com> - 2013-07-27 00:33 +0100
  Re: dump a multi dimensional dictionary Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-27 02:54 +0000

csiph-web