Author taleinat
Recipients Michael.Felt, dstufft, eric.araujo, taleinat
Date 2018-11-02.19:39:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541187571.38.0.788709270274.issue34897@psf.upfronthosting.co.za>
In-reply-to
Content
`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
History
Date User Action Args
2018-11-02 19:40:02taleinatunlinkissue34897 messages
2018-11-02 19:39:31taleinatsetrecipients: + taleinat, eric.araujo, dstufft, Michael.Felt
2018-11-02 19:39:31taleinatsetmessageid: <1541187571.38.0.788709270274.issue34897@psf.upfronthosting.co.za>
2018-11-02 19:39:31taleinatlinkissue34897 messages
2018-11-02 19:39:31taleinatcreate