Author taleinat
Recipients Michael.Felt, dstufft, eric.araujo, taleinat
Date 2018-11-02.19:39:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541187594.23.0.788709270274.issue34897@psf.upfronthosting.co.za>
In-reply-to
Content
`not cmd` will be 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:39:54taleinatsetrecipients: + taleinat, eric.araujo, dstufft, Michael.Felt
2018-11-02 19:39:54taleinatsetmessageid: <1541187594.23.0.788709270274.issue34897@psf.upfronthosting.co.za>
2018-11-02 19:39:54taleinatlinkissue34897 messages
2018-11-02 19:39:54taleinatcreate