GitHub
Moderator
		Use identity when comparing "None"
	
	
		
			
			
				
					
						
							
						
					
					peps.python.org
				
			
		
	
Comparisons to singletons like None should always be done with is or is not, never the equality operators.
Continue reading...
				
			PEP 8 – Style Guide for Python Code | peps.python.org
Python Enhancement Proposals (PEPs)
				
						
					
					peps.python.org
				Continue reading...