mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Add missing docstring for Context.divmod. Thanks Juan José Conti.
This commit is contained in:
		
							parent
							
								
									442879ac71
								
							
						
					
					
						commit
						202eb9094c
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -4051,6 +4051,13 @@ def divide_int(self, a, b): | |||
|         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): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Mark Dickinson
						Mark Dickinson