mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Document additional error handling names available through PEP 293.
This commit is contained in:
		
							parent
							
								
									7f82f7955e
								
							
						
					
					
						commit
						72f861657a
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -45,9 +45,13 @@ return a tuple of functions \code{(\var{encoder}, \var{decoder}, \var{stream_rea | ||||||
| 
 | 
 | ||||||
|   Possible values for errors are \code{'strict'} (raise an exception |   Possible values for errors are \code{'strict'} (raise an exception | ||||||
|   in case of an encoding error), \code{'replace'} (replace malformed |   in case of an encoding error), \code{'replace'} (replace malformed | ||||||
|   data with a suitable replacement marker, such as \character{?}) and |   data with a suitable replacement marker, such as \character{?}), | ||||||
|   \code{'ignore'} (ignore malformed data and continue without further |   \code{'ignore'} (ignore malformed data and continue without further | ||||||
|   notice). |   notice), \code{'xmlcharrefreplace'} (replace with the appropriate XML | ||||||
|  |   character reference (for encoding only)) and \code{'backslashreplace'} | ||||||
|  |   (replace with backslashed escape sequences (for encoding only)) as | ||||||
|  |   well as any other error handling name defined via | ||||||
|  |   \function{register_error()}. | ||||||
| 
 | 
 | ||||||
| In case a search function cannot find a given encoding, it should | In case a search function cannot find a given encoding, it should | ||||||
| return \code{None}. | return \code{None}. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Walter Dörwald
						Walter Dörwald