filbert icon indicating copy to clipboard operation
filbert copied to clipboard

Empty dict should be false in conditional

Open dideler opened this issue 10 years ago • 1 comments

if {}: # Should evaluate to false (does not work)
if {1: 2}: # Should evaluate to true (works)

Note that bool() evaluates dict correctly in filbert; the issue seems to just be with conditionals.

dideler avatar Dec 20 '14 23:12 dideler

Probably a similar fix to #46, which has more details on a possible solution.

differentmatt avatar Jan 06 '15 20:01 differentmatt