On Thu, Dec 15, 2011 at 12:29 AM, Eelco <hoogendoorn.ee...@gmail.com> wrote: > On Dec 14, 1:38 pm, Steven D'Aprano <steve > +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=divmod del __builtins__.divmod :) ChrisA -- http://mail.python.org/mailman/listinfo/python-list