これに依存したコードを書いて良いものでしょうか・・
>>> 1 is None
False
>>> 1 is None and b
False
>>> b and 1 is None
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'b' is not defined
More than 5 years have passed since last update.
これに依存したコードを書いて良いものでしょうか・・
>>> 1 is None
False
>>> 1 is None and b
False
>>> b and 1 is None
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'b' is not defined
Register as a new user and use Qiita more conveniently