mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Killed the <> operator. You must now use !=.
Opportunistically also fixed one or two places where '<> None' should be 'is not None' and where 'type(x) <> y' should be 'not isinstance(x, y)'.
This commit is contained in:
		
							parent
							
								
									01c77c6628
								
							
						
					
					
						commit
						b053cd8f40
					
				
					 36 changed files with 171 additions and 178 deletions
				
			
		|  | @ -618,7 +618,7 @@ def comparison(self, nodelist): | |||
|         for i in range(2, len(nodelist), 2): | ||||
|             nl = nodelist[i-1] | ||||
| 
 | ||||
|             # comp_op: '<' | '>' | '=' | '>=' | '<=' | '<>' | '!=' | '==' | ||||
|             # comp_op: '<' | '>' | '=' | '>=' | '<=' | '!=' | '==' | ||||
|             #          | 'in' | 'not' 'in' | 'is' | 'is' 'not' | ||||
|             n = nl[1] | ||||
|             if n[0] == token.NAME: | ||||
|  | @ -1396,7 +1396,7 @@ def get_docstring(self, node, n=None): | |||
|     symbol.power, | ||||
|     ] | ||||
| 
 | ||||
| # comp_op: '<' | '>' | '=' | '>=' | '<=' | '<>' | '!=' | '==' | ||||
| # comp_op: '<' | '>' | '=' | '>=' | '<=' | '!=' | '==' | ||||
| #             | 'in' | 'not' 'in' | 'is' | 'is' 'not' | ||||
| _cmp_types = { | ||||
|     token.LESS : '<', | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum