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
786
786
@pyscript_compile
787
787
^^^^^^^^^^^^^^^^^
788
788
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__ ``).
792
793
793
794
The ``@pyscript_compile `` decorator causes the function to be treated as native Python and
794
795
compiled, 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
833
834
but since it's native python, all language features are available, including ``open ``,
834
835
``yield `` etc
835
836
- 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.
838
839
839
840
@service
840
841
^^^^^^^^
You can’t perform that action at this time.
0 commit comments