Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.04; 'mrab': 0.04; 'operator': 0.04; ':-)': 0.06; '16,': 0.15; 'subject:was': 0.15; 'calculating': 0.16; 'eg.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:syntax': 0.16; 'wrote:': 0.18; 'subject:not': 0.21; 'dec': 0.22; 'header:In-Reply-To:1': 0.22; 'message- id:@mail.gmail.com': 0.28; 'looks': 0.29; 'pm,': 0.29; 'subject:]': 0.32; 'fri,': 0.34; 'to:addr:python-list': 0.34; 'received:74.125.82': 0.35; 'but': 0.37; 'received:74.125': 0.37; 'received:google.com': 0.37; 'could': 0.37; "it's": 0.40; 'to:addr:python.org': 0.40; '2011': 0.61; 'circles': 0.84 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=Q0zD71Y+qrvb59spxdKxpGCReaANzTnlA/0kcKiU/44=; b=Fm/mz+BoG762SyXIm0CXXmVyaslA9N3qu04z/vSI3NQporfU8677s2VnBr9lqoVSP2 Z3MZAdKLW/bpNYIBLHI5xk6JGUnzvSZgyX1SVYnrNs80FB1hcmx9ec1S5Qu/8B3CtFlI D0r2XpcR/f3MdVM7cPwb0aL5ClMmbHd61XVOk= MIME-Version: 1.0 In-Reply-To: <4EEAB3E0.80809@mrabarnett.plus.com> References: <4ee81592$0$11091$c3e8da3@news.astraweb.com> <4ee89762$0$29979$c3e8da3$5496439d@news.astraweb.com> <4EEAB3E0.80809@mrabarnett.plus.com> Date: Fri, 16 Dec 2011 16:01:57 +1100 Subject: Re: % is not an operator [was 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: 1324011718 news.xs4all.nl 6840 [2001:888:2000:d::a6]:52148 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17329 On Fri, Dec 16, 2011 at 1:58 PM, MRAB wrote: > In financial circles it could be an operator for calculating > percentages, eg. "5 % x" would be 5 percent of x. > > It's an oddity, but an established one. :-) And I would be most sorry to see % renamed to mod in Python. "Hello, %s! My favourite number is %d." mod ("Fred",42) # This just looks wrong. ChrisA