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: 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: References: Date: Sat, 27 Jul 2013 00:33:58 +0100 Subject: Re: dump a multi dimensional dictionary From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Fri, Jul 26, 2013 at 9:21 PM, cerr 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