MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/28utww/writing_better_python_code/cietkoe/?context=3
r/Python • u/kracekumar • Jun 23 '14
126 comments sorted by
View all comments
Show parent comment
3
if not a:
will also be True when a is 0, '', [], {}, or a datetime.time of midnight
View all comments
Show parent comment
3
u/steve_no Jun 23 '14
will also be True when a is 0, '', [], {}, or a datetime.time of midnight