Tal Einat <talei...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue34897> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com