File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -786,9 +786,10 @@ Other Function Decorators
786786@pyscript_compile
787787^^^^^^^^^^^^^^^^^
788788
789- By default in pysript all functions are async, so they cannot be used as callbacks or methods
790- in python packages that expect regular functions, or used with built-in functions like ``map ``
791- or special class methods that are called by python internals (eg, ``__getattr__ `` or ``__del__ ``).
789+ By default in pysript all functions are async, so they cannot be used in ``task.executor ``,
790+ as callbacks or methods in python packages that expect regular functions, or used with built-in
791+ functions like ``map `` or special class methods that are called by python internals (eg,
792+ ``__getattr__ `` or ``__del__ ``).
792793
793794The ``@pyscript_compile `` decorator causes the function to be treated as native Python and
794795compiled, which results in a regular python function being defined, and it will run at full
@@ -833,8 +834,8 @@ This is an experimental feature and might change in the future. Restrictions inc
833834 but since it's native python, all language features are available, including ``open ``,
834835 ``yield `` etc
835836- if you use ``@pyscript_compile `` on an inner function (ie, defined inside a pyscript
836- function), then binding of variables defined outside the scope of the inner function do
837- not work.
837+ function), then binding of variables defined outside the scope of the inner function
838+ does not work.
838839
839840@service
840841^^^^^^^^
You can’t perform that action at this time.
0 commit comments