mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Add some documentation for functions on the demo site
This commit is contained in:
1 file changed
+7
-2
@@ -51,12 +51,17 @@ while count < until:
|
||||
</li>
|
||||
<li>
|
||||
<code>vars</code>: an object that will be available in
|
||||
python as the variable <code>js_vars</code>. Again, only
|
||||
values that can be serialized with
|
||||
python as the variable <code>js_vars</code>. Only
|
||||
functions and values that can be serialized with
|
||||
<code>JSON.stringify()</code> will go through.
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
JS functions that get passed to python will recieve positional
|
||||
args as positional args and kwargs as the
|
||||
<code>this</code> argument
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<a href="https://github.com/RustPython/RustPython">
|
||||
|
||||
Reference in new issue
Block a user