File tree 1 file changed +2
-1
lines changed
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
2146
2146
won't be able to call that pyscript function unless it uses ``await ``, which requires that function to
2147
2147
be declared ``async ``. Unless the Python module is designed to support async callbacks, it is not
2148
2148
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).
2150
2151
- Continuing that point, special methods (e.g., ``__eq__ ``) in a class created in `pyscript ` will not work since
2151
2152
they are async functions and Python will not be able to call them. The two workarounds are to
2152
2153
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