Removed operators and synonymous with and repr
suggest changeIn Python 2, <>
is a synonym for !=
; likewise, foo
is a synonym for repr(foo)
.
>>> 1 <> 2
True
>>> 1 <> 1
False
>>> foo = 'hello world'
>>> repr(foo)
"'hello world'"
>>> `foo`
"'hello world'"
>>> 1 <> 2
File "<stdin>", line 1
1 <> 2
^
SyntaxError: invalid syntax
>>> `foo`
File "<stdin>", line 1
`foo`
^
SyntaxError: invalid syntax
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents