Allows easier control over Python references from Javascript. Prerequisite for "borrowed PyProxies" plan.
Add PyProxy.clone. Allows easier control over Python references from Javascript. Prerequisite for "borrowed PyProxies" plan.
import sys

if "_pyodide_core" not in sys.modules:
    from _pyodide import _core as _pyodide_core

    sys.modules["_pyodide_core"] = _pyodide_core

from _pyodide_core import (
    JsProxy,
    JsException,
    create_proxy,
    create_once_callable,
    to_js,
)

__all__ = ["JsProxy", "JsException", "create_proxy", "create_once_callable", "to_js"]

import sys

if "_pyodide_core" not in sys.modules:
    from _pyodide import _core as _pyodide_core

    sys.modules["_pyodide_core"] = _pyodide_core

from _pyodide_core import (
    JsProxy,
    JsException,
    create_proxy,
    create_once_callable,
    to_js,
)

__all__ = ["JsProxy", "JsException", "create_proxy", "create_once_callable", "to_js"]
