re: Beware of Python dict.get() VIEW POST

VIEW FULL DISCUSSION
 

Wouldn’t or also fail if the value was something like 0 or False?

 
In [1]: 0 or {}
Out[1]: {}

In [2]: False or {}
Out[2]: {}
code of conduct - report abuse