Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'python': 0.09; '2.7': 0.13; 'language': 0.14; 'dictionaries': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'jr.': 0.16; "o'reilly": 0.16; 'subject:dictionaries': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'version.': 0.17; 'examples': 0.18; 'jan': 0.18; 'obviously': 0.18; 'code,': 0.18; 'code.': 0.20; 'written': 0.20; '3.x': 0.22; 'tuples': 0.22; 'example': 0.23; 'programming': 0.23; 'branch': 0.23; 'header:In-Reply-To:1': 0.25; 'older': 0.27; 'message- id:@mail.gmail.com': 0.27; 'actual': 0.28; 'ansi': 0.29; 'comparison': 0.29; 'python"': 0.29; 'daniel': 0.30; 'checked': 0.30; '(and': 0.32; 'url:python': 0.32; 'getting': 0.33; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'subject:Please': 0.36; 'supporting': 0.37; 'being': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'some': 0.38; 'url:docs': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; "you'll": 0.62; '30,': 0.62; 'explanations': 0.65; 'real-world': 0.65; 'online': 0.70; 'published': 0.71; '2013': 0.84; 'anywhere.': 0.84; 'subject:better': 0.84; 'subject:provide': 0.84; 'numerous': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=YXiM4ZX0VFpC3WCpfNXY+dxLzq+K7E/bX3kjd6yuWCA=; b=UQe+kuodH41MOqrH2lWVymwUdBU6NEgtv30SuRNaWuRcT0mnCTu/VNfLWKMp9/XVF7 cCwQ2fENOUhxCULJEEN+3WAsk+B3iQBndUH9Z70/bgiI+Ynn6O/fx3k1b3ReYlBcRuE7 ZCfTmmrvVRGMuTSo35n/8nTL+sZBErbzdeI7iKGd2FJBN62Z9DOAGHng6XAwTKCjyK3x XF8ulTdvoFJa6R+t06qFibdHQHgLBUaII3Ybx9hOBSY1vldG3bVuCTbuaOiGcXvtRpav L/glFCpPnBOtZEQrM2kxKU8yb661samS9/75JD/zk6/AW+HIP9CIMHVeMLXMcD8KhU+O kJQw== MIME-Version: 1.0 X-Received: by 10.52.22.194 with SMTP id g2mr3159593vdf.91.1359515467166; Tue, 29 Jan 2013 19:11:07 -0800 (PST) In-Reply-To: References: Date: Wed, 30 Jan 2013 14:11:07 +1100 Subject: Re: Please provide a better explanation of tuples and dictionaries 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1359515470 news.xs4all.nl 6951 [2001:888:2000:d::a6]:51684 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37911 On Wed, Jan 30, 2013 at 1:55 PM, Daniel W. Rouse Jr. wrote: > I am currently using "Learning Python" by Mark Lutz and David Ascher, > published by O'Reilly (ISBN 1-56592-464-9)--but I find the explanations > insufficient and the number of examples to be sparse. I do understand some > ANSI C programming in addition to Python (and the book often wanders off > into a comparison of C and Python in its numerous footnotes), but I need a > better real-world example of how tuples and dictionaries are being used in > actual Python code. Have you checked out the online documentation at http://docs.python.org/ ? That might have what you're looking for. By the way, you may want to consider learning and using Python 3.3 instead of the older branch 2.7; new features are only being added to the 3.x branch now, with 2.7 getting bugfixes and such for a couple of years, but ultimately it's not going anywhere. Obviously if you're supporting existing code, you'll need to learn the language that it was written in, but if this is all new code, go with the recent version. ChrisA