File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2146,7 +2146,8 @@ it doesn't faithfully mimic Python. Here are some areas where pyscript differs
21462146 won't be able to call that pyscript function unless it uses ``await ``, which requires that function to
21472147 be declared ``async ``. Unless the Python module is designed to support async callbacks, it is not
21482148 currently possible to have Python modules and packages call pyscript functions. The workaround is
2149- to move your callbacks from pyscript and make them native Python functions; see `Importing <#importing >`__.
2149+ to move your callbacks from pyscript and make them native Python functions; see `Importing <#importing >`__,
2150+ call a function with the ``@pyscript_compile `` decorator, or a lambda (which is also compiled).
21502151- Continuing that point, special methods (e.g., ``__eq__ ``) in a class created in `pyscript ` will not work since
21512152 they are async functions and Python will not be able to call them. The two workarounds are to
21522153 use the ``@pyscript_compile `` decorator so the method is compiled to a native (non-async) Python
You can’t perform that action at this time.
0 commit comments