Skip to content

Commit df193fb

Browse files
committed
updated description of @pyscript.compile variable binding limitation
1 parent 950a78c commit df193fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/reference.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,8 +832,9 @@ This is an experimental feature and might change in the future. Restrictions inc
832832
- since it's native python, the function cannot use any pyscript-specific features;
833833
but since it's native python, all language features are available, including ``open``,
834834
``yield`` etc
835-
- closure (binding) of variables in an inner function with `@pyscript_compile` doesn't
836-
work; this might be supported in the future
835+
- 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.
837838

838839
@service
839840
^^^^^^^^

0 commit comments

Comments
 (0)