mirror of
				https://github.com/python/cpython.git
				synced 2025-10-27 19:54:38 +00:00 
			
		
		
		
	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.
  ........
................
			
			
This commit is contained in:
		
							parent
							
								
									5f7dde18aa
								
							
						
					
					
						commit
						875e1e7b7c
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -4132,6 +4132,13 @@ def divide_int(self, a, b): | ||||||
|         return a.__floordiv__(b, context=self) |         return a.__floordiv__(b, context=self) | ||||||
| 
 | 
 | ||||||
|     def divmod(self, a, b): |     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) |         return a.__divmod__(b, context=self) | ||||||
| 
 | 
 | ||||||
|     def exp(self, a): |     def exp(self, a): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Dickinson
						Mark Dickinson