A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2010-January/088840.html below:

[Python-checkins] r77329 - in python/branches/py3k-cdecimal: Lib/decimal.py

[Python-checkins] r77329 - in python/branches/py3k-cdecimal: Lib/decimal.pymark.dickinson python-checkins at python.org
Wed Jan 6 17:35:19 CET 2010
Author: mark.dickinson
Date: Wed Jan  6 17:35:19 2010
New Revision: 77329

Log:
Merged revisions 77326 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r77326 | mark.dickinson | 2010-01-06 16:22:15 +0000 (Wed, 06 Jan 2010) | 9 lines
  
  Merged revisions 77324 via svnmerge from 
  svn+ssh://pythondev@svn.python.org/python/trunk
  
  ........
    r77324 | mark.dickinson | 2010-01-06 16:20:22 +0000 (Wed, 06 Jan 2010) | 2 lines
    
    Add missing docstring for Context.divmod.  Thanks Juan José Conti.
  ........
................


Modified:
   python/branches/py3k-cdecimal/   (props changed)
   python/branches/py3k-cdecimal/Lib/decimal.py

Modified: python/branches/py3k-cdecimal/Lib/decimal.py
==============================================================================
--- python/branches/py3k-cdecimal/Lib/decimal.py	(original)
+++ python/branches/py3k-cdecimal/Lib/decimal.py	Wed Jan  6 17:35:19 2010
@@ -4132,6 +4132,13 @@
         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):
More information about the Python-checkins mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4