Comment Comment by wzdd Lots of Python objects are falsey: empty lists, empty strings, etc. So it's never a good idea to write "if <thing>" when you mean "if <thing> is not None".This is pretty well-known, I thought. parent wzdd 12 years ago
This is pretty well-known, I thought.