Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.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.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'modulo': 0.09; 'am,': 0.12; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:syntax': 0.16; 'wrote:': 0.18; 'wrap': 0.18; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; '(and': 0.28; 'message- id:@mail.gmail.com': 0.28; 'around.': 0.29; 'wraps': 0.30; 'tue,': 0.32; 'done': 0.34; 'to:addr:python-list': 0.34; 'normally': 0.34; 'integer': 0.34; 'received:google.com': 0.37; 'received:209.85': 0.38; "it's": 0.40; 'received:209': 0.40; 'to:addr:python.org': 0.40; '2011': 0.61 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=O7pLwMdZGcwAE89GTGFDDgfYJ69cxrx0Sj3hrd2FANI=; b=TBd5q4UN34PO/moREfhdZlbDkmYJE1OZccL9plTKg1Y99qArrj/85IBX3jJanpEz1P 6M1EOqRIVW89kQpc20ghSp4nt0pWIYRDT0EHd8ojA7OPjLaw5LUL0HlY4t6xQQ2RakBM 4JLqR4rvzZU8MlrDtE9/Zton5D63pHOsodNlI= MIME-Version: 1.0 In-Reply-To: References: <4ee554a3$0$11091$c3e8da3@news.astraweb.com> <9klr6aF2ovU1@mid.individual.net> Date: Tue, 13 Dec 2011 03:19:39 +1100 Subject: Re: Verbose and flexible args and kwargs syntax 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323706782 news.xs4all.nl 6967 [2001:888:2000:d::a6]:46703 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17058 On Tue, Dec 13, 2011 at 3:15 AM, Arnaud Delobelle wrote: > > You mean (a + b) % c == (a%c + b%c) % c > > :) It's just integer wraparound. Modulo 9 is the same as "render this number in base 9 and take the last digit" (and printing a number in base 9 would normally be done with mod 9 division), and most people can wrap their heads around the way an odometer wraps around. ChrisA