Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news-transit.tcx.org.uk!rt.uk.eu.org!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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'be:': 0.09; 'received:209.85.160.174': 0.09; 'received:mail- gy0-f174.google.com': 0.09; 'am,': 0.12; 'subject:was': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:syntax': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'subject:not': 0.21; 'dec': 0.22; 'header:In-Reply- To:1': 0.22; 'math': 0.24; 'module': 0.26; 'import': 0.27; 'message-id:@mail.gmail.com': 0.28; 'thu,': 0.32; 'subject:]': 0.32; 'received:209.85.160': 0.33; 'to:addr:python-list': 0.34; 'totally': 0.35; 'received:google.com': 0.37; 'skip:_ 10': 0.37; 'steven': 0.38; 'received:209.85': 0.38; 'received:209': 0.40; 'to:addr:python.org': 0.40; '2011': 0.61; '12:29': 0.84; 'happy.': 0.84; 'solved.': 0.91 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:content-transfer-encoding; bh=vE3f5H5xvI5HgsE+/de3iF2xQiiV2FlWMmZp998Sly4=; b=uQVQv7PR6EoxpLWoYscZpSmHGcVoa8RD+C7JMVtYW3FN/+4DCZ1GkbrvIcPTla+u4E wNih1RQcDS80p8JPAb56cRy+Vd4C5A/G+OI6CGufI+EHWcRMfVcErduER24epNGj1Ehz PpOxeG2zBdwZQ/jlpYlAKxKndQ0G7+KYGmHFo= MIME-Version: 1.0 In-Reply-To: <0d38ea3b-46ff-4fbc-9a1c-8e028c3a7d8b@n10g2000vbg.googlegroups.com> References: <4ee81592$0$11091$c3e8da3@news.astraweb.com> <78d2ba1b-0ea2-49a8-88f4-d85186bb2317@f11g2000yql.googlegroups.com> <4ee898c6$0$29979$c3e8da3$5496439d@news.astraweb.com> <0d38ea3b-46ff-4fbc-9a1c-8e028c3a7d8b@n10g2000vbg.googlegroups.com> Date: Thu, 15 Dec 2011 00:39:07 +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 Content-Transfer-Encoding: quoted-printable 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323869950 news.xs4all.nl 6982 [2001:888:2000:d::a6]:54935 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17216 On Thu, Dec 15, 2011 at 12:29 AM, Eelco wrote= : > On Dec 14, 1:38=A0pm, Steven D'Aprano +comp.lang.pyt...@pearwood.info> wrote: >> That would be: >> >> >>> divmod(17, 5) >> >> (3, 2) > > Cool; if only it were in the math module id be totally happy. That's easily solved. import math math.divmod=3Ddivmod del __builtins__.divmod :) ChrisA