MCPcopy Index your code
hub / github.com/pyscript/pyscript / _to_js_wrapper

Function _to_js_wrapper

core/src/stdlib/pyscript/ffi.py:34–37  ·  view source on GitHub ↗
(value, **kw)

Source from the content-addressed store, hash-verified

32 from_entries = js.Object.fromEntries
33
34 def _to_js_wrapper(value, **kw):
35 if "dict_converter" not in kw:
36 kw["dict_converter"] = from_entries
37 return _py_tjs(value, **kw)
38
39except:
40 # Fallback to jsffi for MicroPython.

Callers 1

to_jsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected