[issue34897] distutils test errors when CXX is not set

Tal Einat report at bugs.python.org
Fri Nov 2 15:39:31 EDT 2018


Tal Einat <taleinat at gmail.com> added the comment:

`not cmd` will but true if cmd is None, so it is completely equivalent to `cmd is None or not cmd`.  This is a purely stylistic change which doesn't alter the logic.

To get a clear understanding of what's going on, I recommend reading the short "Truth Value Testing" section in the docs:
https://docs.python.org/library/stdtypes.html#truth-value-testing

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34897>
_______________________________________


More information about the Python-bugs-list mailing list