Message329154
`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 |
|
Date |
User |
Action |
Args |
2018-11-02 19:40:02 | taleinat | unlink | issue34897 messages |
2018-11-02 19:39:31 | taleinat | set | recipients:
+ taleinat, eric.araujo, dstufft, Michael.Felt |
2018-11-02 19:39:31 | taleinat | set | messageid: <1541187571.38.0.788709270274.issue34897@psf.upfronthosting.co.za> |
2018-11-02 19:39:31 | taleinat | link | issue34897 messages |
2018-11-02 19:39:31 | taleinat | create | |
|