Skip to content

Commit b2cc103

Browse files
committed
minor changes to @pyscript_compile description
1 parent df193fb commit b2cc103

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

docs/reference.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

793794
The ``@pyscript_compile`` decorator causes the function to be treated as native Python and
794795
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
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
^^^^^^^^

0 commit comments

Comments
 (0)