Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'subject:file': 0.07; 'brackets': 0.09; 'received:mail-lpp01m010-f46.google.com': 0.09; 'cc:addr:python-list': 0.10; 'advance': 0.10; '(2,': 0.16; '3):': 0.16; 'semicolon': 0.16; 'x-mailer:apple mail (2.1084)': 0.22; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'this?': 0.28; 'url:mailman': 0.29; 'received:209.85.215.46': 0.30; 'url:python': 0.32; 'file': 0.32; 'print': 0.32; 'url:listinfo': 0.32; 'hi,': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'received:209.85': 0.35; 'something': 0.35; 'message- id:@gmail.com': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'url:mail': 0.40; 'header:Message-Id:1': 0.62; 'email addr:gmail.com': 0.63; 'received:ru': 0.81; 'dict()': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=lzkdKjv0rDNFn5t4ofUNgWfnwp8V6vgNc8oC9iMz9NE=; b=lWiQ2n16GNb0zhiVkYF0KwW6Pm2WIaFAGlniGTUWr2z8I9zpxLWcAc4pUa4wvEz2O5 CA6iQmearDR/ovyCVWKRYZCesaYkUl1T2rfuyxWF/6v0C4VucpMVr6hlLekpdlCFSAa3 6rmIbSDbKDLWaxl6Fi0gN4HX08B4hZtDy7T6wFmjO9jYeAif7Bmg0y4HLG/uOmN3641+ bPDQT2m/SSkfKDPCzJF8IEDAMl8Mc2oCu0+hiTV89Ennp/WOi0qcNWIAmRK2kjY5tVZL 4NZb/O51tlMRscxtv82xCU5twpruuJcwX1ezhVCxR+3XCO9NZgb5wEecoal2Ph3lRa4r S8Iw== Subject: Re: save dictionary to a file without brackets. Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=koi8-r From: Roman Vashkevich In-Reply-To: <930ab3d8-4ab9-446d-9970-ee811eb70a44@googlegroups.com> Date: Fri, 10 Aug 2012 00:22:57 +0400 Content-Transfer-Encoding: quoted-printable References: <930ab3d8-4ab9-446d-9970-ee811eb70a44@googlegroups.com> To: giuseppe.amatulli@gmail.com X-Mailer: Apple Mail (2.1084) Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1344543785 news.xs4all.nl 6860 [2001:888:2000:d::a6]:58843 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26807 for key in dict: print key[0], key[1], dict[key] 10.08.2012, =D7 0:11, giuseppe.amatulli@gmail.com =CE=C1=D0=C9=D3=C1=CC(=C1= ): > Hi, > I have a dict() unique > like this=20 > {(4, 5): 1, (5, 4): 1, (4, 4): 2, (2, 3): 1, (4, 3): 2} > and i want to print to a file without the brackets comas and semicolon = in order to obtain something like this? > 4 5 1 > 5 4 1 > 4 4 2 > 2 3 1 > 4 3 2 > Any ideas? > Thanks in advance=20 > Giuseppe > --=20 > http://mail.python.org/mailman/listinfo/python-list