mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	merge from 3.5
Issue24898 - Improve str.find documentation. Simplify str.find explaination as per Georg Brandl's suggestion.
This commit is contained in:
		
						commit
						dcf76c9d0a
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
					@ -1563,10 +1563,9 @@ expression support in the :mod:`re` module).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.. method:: str.find(sub[, start[, end]])
 | 
					.. method:: str.find(sub[, start[, end]])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   Return the lowest index in the string where substring *sub* is found, such
 | 
					   Return the lowest index in the string where substring *sub* is found within
 | 
				
			||||||
   that *sub* is contained in the slice ``s[start:end]``.  Optional arguments
 | 
					   the slice ``s[start:end]``.  Optional arguments *start* and *end* are
 | 
				
			||||||
   *start* and *end* are interpreted as in slice notation.  Return ``-1`` if
 | 
					   interpreted as in slice notation.  Return ``-1`` if *sub* is not found.
 | 
				
			||||||
   *sub* is not found.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
   .. note::
 | 
					   .. note::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue