differentmatt / filbert

JavaScript parser of Python
Other
133 stars 27 forks source link

Empty dict should be false in conditional #45

Open dideler opened 9 years ago

dideler commented 9 years ago
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.

differentmatt commented 9 years ago

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