Methods
(static) basicwrap()
for when the return type might be one of a variety of basic types. number|string, etc.
(static) remapToJs(obj)
Maps from Python dict/list/str/number to Javascript Object/Array/string/number.
If obj is a
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object | Any Python object (except a function) |
(static) remapToPy()
maps from Javascript Object/Array/string to Python dict/list/str.
only works on basic objects that are being used as storage, doesn't handle functions, etc.