From 202eb9094cc9c504adb1ec122a233a3a19b35b7c Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Wed, 6 Jan 2010 16:20:22 +0000 Subject: [PATCH] =?utf8?q?Add=20missing=20docstring=20for=20Context.divmod?= =?utf8?q?.=20=20Thanks=20Juan=20Jos=C3=A9=20Conti.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Lib/decimal.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lib/decimal.py b/Lib/decimal.py index 83933651d21a..4caa4cea79e6 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -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): -- 2.47.3