Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; '=====': 0.09; 'subject:beginner': 0.09; 'subject:language': 0.09; 'wed,': 0.12; 'subject:python': 0.12; 'received:209.85.214.174': 0.13; 'received :mail-iw0-f174.google.com': 0.13; 'wrote:': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; "isn't.": 0.16; 'redundancy': 0.16; 'subject: \n ': 0.16; 'pm,': 0.16; 'this:': 0.16; 'subject:question': 0.21; 'header:In-Reply- To:1': 0.22; 'string': 0.26; 'received:209.85.214': 0.28; 'right,': 0.28; 'subject:need': 0.28; 'message- id:@mail.gmail.com': 0.28; 'subject:?': 0.31; 'adds': 0.32; 'list': 0.32; 'to:addr:python-list': 0.34; "can't": 0.34; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'think': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'total': 0.61; 'human': 0.63; 'readers': 0.71; 'subject:interesting': 0.84; 'edwards': 0.91; 'transfer.': 0.91; 'reliability': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ZW9OYBLsmaumzIFgcSwzB3UA2iBAHC3r7r9r5w2TBjQ=; b=e9qkeHA4M6HgZbN6krnkOzB8zQFbEFGuowqYxNWil6O9hnLXVj6+z9EGAptVClEHuG +CZriM+YjJInsru6q8IIoGoZzuE6Y7r4V5tcGZPA6yRP1Lh1T/xW68fpptBLemv2qZy3 fFxU0/w20CmKkIwRD6mEAOjUgXGvSeUwoaQL4= MIME-Version: 1.0 In-Reply-To: References: Date: Wed, 13 Jul 2011 23:11:41 +1000 Subject: Re: An interesting beginner question: why we need colon at all in the python language? 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.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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310562704 news.xs4all.nl 23880 [2001:888:2000:d::a6]:44443 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9391 On Wed, Jul 13, 2011 at 11:03 PM, Grant Edwards wrote: > You would think so, but human readers like redundancy. > One of the benefits of redundancy is error-trapping. If you see a list of numbers like this: 40 14 24 56 48 12 60 16 ===== 269 then you know the result can't be right, because they're all even numbers and the total isn't. The redundancy of having both the string of numbers and the total adds only a small amount to the transmission requirement, but it adds a lot to the reliability of transfer. ChrisA