1. masklinn
  2. py.js
  3. Issues
Issue #2 resolved

Booleans are not comparable, comparisons between different types is not handled correctly (for builtins)

repo owner created an issue



py.eval('True < "foo"'); [Error line: 22535 message: "'undefined' is not a function (evaluating 'a.lt(b)')"] }}}

Comments (1)

  1. masklinn reporter

    As of 6a1a4a52afa4, comparing True and False still won't work right, but comparing "uncomparable" types with one another now works pretty much like it should. Not perfect as the numeric tower does not actually work, but should be good enough.

  2. Log in to comment