Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed
Description
I had a coworker slightly confused about the following warning, since None is a literal andis not None
is idiomatic:
>>> 'a' is not None<stdin>:1: SyntaxWarning: "is not" with a literal. Did you mean "!="?True
I think this would be better as:
>>> 'a' is not None<stdin>:1: SyntaxWarning: "is not" with str literal. Did you mean "!="?True