On Tue, 29 Oct 2019 08:31:22 +0800 Changbin Du changbin.du@gmail.com wrote:
Here python is different from C. Both empty string and None are False in python. Note such condition is common in python.
Treating both as a False value is reasonably common. Treating them elsewhere in the same code block as separate values is less so; that's the part I would prefer to avoid.
Thanks,
jon