1# Code that is NOT written in valid Python syntax, but can 2# be used from valid python code to accomplish various things 3# that are needed. 4 5# This gives us the new operator as a Python function call: 6def js_new(f, *args, **kwds): 7 return new f(*args, **kwds) 8 9def js_instanceof(obj, cls): 10 return r"%js obj instanceof cls" 11