diff --git a/www/src/py_utils.js b/www/src/py_utils.js
index <HASH>..<HASH> 100644
--- a/www/src/py_utils.js
+++ b/www/src/py_utils.js
@@ -838,6 +838,10 @@ $B.$is = function(a, b){
     if(a instanceof Number && b instanceof Number){
         return a.valueOf() == b.valueOf()
     }
+    if((a === _b_.int && b == $B.long_int) ||
+            (a === $B.long_int && b === _b_.int)){
+        return true
+    }
     return a === b
 }
"type(x) is type(y)" is True when x is a "safe integer" and y is a "long integer"