Matt Lott

Results 34 comments of Matt Lott

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

Nice, thanks for the reduced repros. https://docs.python.org/3.4/library/stdtypes.html#comparisons

This is not supported yet. #26 is tracking adding the sort method to lists #8 is tracking adding keyword arguments Here is a workaround: ``` python def cmp(a, b): return...

Good catch, updated comment.

I don't think so. I tried putting a print statement in filbert_loose `parse_dammit` and did not see it print after running `grunt test`. How exactly did you check this?

Nice find! This is because truth value testing is not fully implemented. https://docs.python.org/3.4/library/stdtypes.html#truth-value-testing

See 40e31268604d45d13391bd63c5745c0ba5ada2d3 for list comprehension implementation.

This includes built-in data structures like list and dict. E.g list.sort() should handle keyword arguments.

Good questions. I'm not sure offhand, but should have some time later this week to look into this.

@dideler Wrapping non-operator expressions in a `bool()` call should fix this. I don't think we need a specific truthiness value to the Python list object, since `bool()` already evaluates correctly....