2 ms·
There is no `NULL` in Python. It is `None`. Idiomatic test for `None` is: if something is None: # ... It would be incorrect to use `if not something
by d0mine 13y ago
There is no `NULL` in Python. It is `None`.
Idiomatic test for `None` is:
if something is None:
# ...
It would be incorrect to use `if not something:` here.