mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 11:23:31 +00:00 
			
		
		
		
	Issue #10225: Fixed the simple mistakes in doctests.
This commit is contained in:
		
							parent
							
								
									477ba919c1
								
							
						
					
					
						commit
						287d1fdd3f
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -144,7 +144,7 @@ value of that integer or float.  Decimal numbers include special values such as
 | 
				
			||||||
   >>> Decimal((0, (3, 1, 4), -2))
 | 
					   >>> Decimal((0, (3, 1, 4), -2))
 | 
				
			||||||
   Decimal('3.14')
 | 
					   Decimal('3.14')
 | 
				
			||||||
   >>> Decimal(str(2.0 ** 0.5))
 | 
					   >>> Decimal(str(2.0 ** 0.5))
 | 
				
			||||||
   Decimal('1.41421356237')
 | 
					   Decimal('1.4142135623730951')
 | 
				
			||||||
   >>> Decimal(2) ** Decimal('0.5')
 | 
					   >>> Decimal(2) ** Decimal('0.5')
 | 
				
			||||||
   Decimal('1.414213562373095048801688724')
 | 
					   Decimal('1.414213562373095048801688724')
 | 
				
			||||||
   >>> Decimal('NaN')
 | 
					   >>> Decimal('NaN')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,7 +9,7 @@
 | 
				
			||||||
.. testsetup::
 | 
					.. testsetup::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   import operator
 | 
					   import operator
 | 
				
			||||||
   from operator import itemgetter
 | 
					   from operator import itemgetter, iadd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The :mod:`operator` module exports a set of functions implemented in C
 | 
					The :mod:`operator` module exports a set of functions implemented in C
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1878,7 +1878,7 @@ Settings and special methods
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      >>> cv = screen.getcanvas()
 | 
					      >>> cv = screen.getcanvas()
 | 
				
			||||||
      >>> cv
 | 
					      >>> cv
 | 
				
			||||||
      <turtle.ScrolledCanvas instance at 0x...>
 | 
					      <turtle.ScrolledCanvas object at ...>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. function:: getshapes()
 | 
					.. function:: getshapes()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue