mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	merge with 3.2
This commit is contained in:
		
						commit
						eb41c7fef8
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -246,9 +246,9 @@ Built-in functions such as :func:`max` and :func:`min` can take a single
 | 
				
			||||||
iterator argument and will return the largest or smallest element.  The ``"in"``
 | 
					iterator argument and will return the largest or smallest element.  The ``"in"``
 | 
				
			||||||
and ``"not in"`` operators also support iterators: ``X in iterator`` is true if
 | 
					and ``"not in"`` operators also support iterators: ``X in iterator`` is true if
 | 
				
			||||||
X is found in the stream returned by the iterator.  You'll run into obvious
 | 
					X is found in the stream returned by the iterator.  You'll run into obvious
 | 
				
			||||||
problems if the iterator is infinite; ``max()``, ``min()``, and ``"not in"``
 | 
					problems if the iterator is infinite; ``max()``, ``min()``
 | 
				
			||||||
will never return, and if the element X never appears in the stream, the
 | 
					will never return, and if the element X never appears in the stream, the
 | 
				
			||||||
``"in"`` operator won't return either.
 | 
					``"in"`` and ``"not in"`` operators won't return either.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Note that you can only go forward in an iterator; there's no way to get the
 | 
					Note that you can only go forward in an iterator; there's no way to get the
 | 
				
			||||||
previous element, reset the iterator, or make a copy of it.  Iterator objects
 | 
					previous element, reset the iterator, or make a copy of it.  Iterator objects
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue