typed_python icon indicating copy to clipboard operation
typed_python copied to clipboard

Compiled "is" gives incorrect results sometimes; Compiled "is not" is not supported.

Open rubidge opened this issue 4 years ago • 1 comments

def f_is(x,y):
    return x is y

f_is(1,1) = True

but

Entrypoint(f_is)(1,1) = False

Compiled "is" seems to work on plain objects (untyped).

Separately, trying to compile "is not" on plain objects produces error "Unknown binary operator IsNot()"

rubidge avatar Jun 10 '20 03:06 rubidge

Presume this is related to #321

rubidge avatar Jun 12 '20 13:06 rubidge