Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'programmers,': 0.07; 'received:verizon.net': 0.07; 'terry': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'am,': 0.12; 'reedy': 0.16; 'subject:syntax': 0.16; 'wrote:': 0.18; 'slightly': 0.19; 'jan': 0.19; 'header:In-Reply-To:1': 0.22; 'gregory': 0.23; 'suspect': 0.24; 'fact': 0.27; 'ewing': 0.30; 'hours,': 0.30; 'header:User- Agent:1': 0.33; 'actually': 0.33; 'header:X-Complaints-To:1': 0.33; 'instead': 0.33; 'to:addr:python-list': 0.34; 'mostly': 0.34; 'using': 0.38; 'received:org': 0.38; 'should': 0.39; 'week.': 0.40; 'to:addr:python.org': 0.40; 'day': 0.69; 'become': 0.69; 'life.': 0.73; 'funny': 0.76; '3:09': 0.84; 'calculations': 0.84; 'huh?': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Verbose and flexible args and kwargs syntax Date: Mon, 12 Dec 2011 10:36:36 -0500 References: <4ee554a3$0$11091$c3e8da3@news.astraweb.com> <9klr6aF2ovU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <9klr6aF2ovU1@mid.individual.net> 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323704213 news.xs4all.nl 6881 [2001:888:2000:d::a6]:59652 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17047 On 12/12/2011 3:09 AM, Gregory Ewing wrote: > people who don't become programmers, I suspect they never > have much use for remainders in everyday life. Huh? Funny you should say 'everyday'. It is now 10 o'clock. In 20 hours, it will be (10+20) % 12 == 6 o'clock. It is now day 1 of the week. In 9 days it will be day (1+9) % 7 == 3 of the week. Mental calculations are helped by the fact that (a+b) % c == a%c + b%c, so that would actually be 1+2==3. Timekeeping is mostly remaindering, slightly obscured by using 12 instead of 0. -- Terry Jan Reedy