mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Issue #21439: Fix a couple of typos.
This commit is contained in:
		
							parent
							
								
									4ce118e99a
								
							
						
					
					
						commit
						2f78b84c47
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -180,7 +180,7 @@ those made in the suite of the for-loop::
 | 
				
			||||||
   for i in range(10):
 | 
					   for i in range(10):
 | 
				
			||||||
       print(i)
 | 
					       print(i)
 | 
				
			||||||
       i = 5             # this will not affect the for-loop
 | 
					       i = 5             # this will not affect the for-loop
 | 
				
			||||||
                         # be i will be overwritten with the next
 | 
					                         # because i will be overwritten with the next
 | 
				
			||||||
                         # index in the range
 | 
					                         # index in the range
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -522,7 +522,7 @@ An attribute reference is a primary followed by a period and a name:
 | 
				
			||||||
The primary must evaluate to an object of a type that supports attribute
 | 
					The primary must evaluate to an object of a type that supports attribute
 | 
				
			||||||
references, which most objects do.  This object is then asked to produce the
 | 
					references, which most objects do.  This object is then asked to produce the
 | 
				
			||||||
attribute whose name is the identifier.  This production can be customized by
 | 
					attribute whose name is the identifier.  This production can be customized by
 | 
				
			||||||
overriding the :meth:`__getattr__` method).  If this attribute is not available,
 | 
					overriding the :meth:`__getattr__` method.  If this attribute is not available,
 | 
				
			||||||
the exception :exc:`AttributeError` is raised.  Otherwise, the type and value of
 | 
					the exception :exc:`AttributeError` is raised.  Otherwise, the type and value of
 | 
				
			||||||
the object produced is determined by the object.  Multiple evaluations of the
 | 
					the object produced is determined by the object.  Multiple evaluations of the
 | 
				
			||||||
same attribute reference may yield different objects.
 | 
					same attribute reference may yield different objects.
 | 
				
			||||||
| 
						 | 
					@ -1245,7 +1245,7 @@ Lambdas
 | 
				
			||||||
   lambda_expr: "lambda" [`parameter_list`]: `expression`
 | 
					   lambda_expr: "lambda" [`parameter_list`]: `expression`
 | 
				
			||||||
   lambda_expr_nocond: "lambda" [`parameter_list`]: `expression_nocond`
 | 
					   lambda_expr_nocond: "lambda" [`parameter_list`]: `expression_nocond`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Lambda expressions (sometimes called lambda forms) are create anonymous
 | 
					Lambda expressions (sometimes called lambda forms) are used to create anonymous
 | 
				
			||||||
functions. The expression ``lambda arguments: expression`` yields a function
 | 
					functions. The expression ``lambda arguments: expression`` yields a function
 | 
				
			||||||
object.  The unnamed object behaves like a function object defined with ::
 | 
					object.  The unnamed object behaves like a function object defined with ::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue