judy2k / stupid-python-tricks

Stupid Python tricks.
The Unlicense
144 stars 27 forks source link

Make empty string False-ish #5

Closed snoack closed 9 years ago

snoack commented 9 years ago

Empty strings should probably be considered False-ish, rather than causing ValueError('Maybe!').

snoack commented 9 years ago

Closing this PR, as it turned out that empty strings needs to be considered differently, as addressed in #4.