Commit 202eb909 authored by Mark Dickinson's avatar Mark Dickinson

Add missing docstring for Context.divmod. Thanks Juan José Conti.

parent 442879ac
......@@ -4051,6 +4051,13 @@ class Context(object):
return a.__floordiv__(b, context=self)
def divmod(self, a, b):
"""Return (a // b, a % b)
>>> ExtendedContext.divmod(Decimal(8), Decimal(3))
(Decimal('2'), Decimal('2'))
>>> ExtendedContext.divmod(Decimal(8), Decimal(4))
(Decimal('2'), Decimal('0'))
"""
return a.__divmod__(b, context=self)
def exp(self, a):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment