Null String Variable

Sean McIlroy sean_mcilroy at yahoo.com
Mon May 16 18:58:13 EDT 2005


well, somebody's already pointed out that bool(msg)==False iff msg==''.
i'm curious to know what's wrong with simply writing

if msg=='':
    ## do_something




More information about the Python-list mailing list