mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	 040f76b79c
			
		
	
	
		040f76b79c
		
	
	
	
	
		
			
			Replace UnicodeDecodeErrors raised during == and != compares of Unicode and other objects with a new UnicodeWarning. All other comparisons continue to raise exceptions. Exceptions other than UnicodeDecodeErrors are also left untouched.
		
			
				
	
	
		
			48 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| BaseException
 | |
|  +-- SystemExit
 | |
|  +-- KeyboardInterrupt
 | |
|  +-- Exception
 | |
|       +-- GeneratorExit
 | |
|       +-- StopIteration
 | |
|       +-- StandardError
 | |
|       |    +-- ArithmeticError
 | |
|       |    |    +-- FloatingPointError
 | |
|       |    |    +-- OverflowError
 | |
|       |    |    +-- ZeroDivisionError
 | |
|       |    +-- AssertionError
 | |
|       |    +-- AttributeError
 | |
|       |    +-- EnvironmentError
 | |
|       |    |    +-- IOError
 | |
|       |    |    +-- OSError
 | |
|       |    |         +-- WindowsError (Windows)
 | |
|       |    |         +-- VMSError (VMS)
 | |
|       |    +-- EOFError
 | |
|       |    +-- ImportError
 | |
|       |    +-- LookupError
 | |
|       |    |    +-- IndexError
 | |
|       |    |    +-- KeyError
 | |
|       |    +-- MemoryError
 | |
|       |    +-- NameError
 | |
|       |    |    +-- UnboundLocalError
 | |
|       |    +-- ReferenceError
 | |
|       |    +-- RuntimeError
 | |
|       |    |    +-- NotImplementedError
 | |
|       |    +-- SyntaxError
 | |
|       |    |    +-- IndentationError
 | |
|       |    |         +-- TabError
 | |
|       |    +-- SystemError
 | |
|       |    +-- TypeError
 | |
|       |    +-- ValueError
 | |
|       |    |    +-- UnicodeError
 | |
|       |    |         +-- UnicodeDecodeError
 | |
|       |    |         +-- UnicodeEncodeError
 | |
|       |    |         +-- UnicodeTranslateError
 | |
|       +-- Warning
 | |
|            +-- DeprecationWarning
 | |
|            +-- PendingDeprecationWarning
 | |
|            +-- RuntimeWarning
 | |
|            +-- SyntaxWarning
 | |
|            +-- UserWarning
 | |
|            +-- FutureWarning
 | |
| 	   +-- ImportWarning
 | |
| 	   +-- UnicodeWarning
 |