@@ -517,7 +517,7 @@ poor introspection capabilities:
517
517
* Making use of the capitalized-name-for-classes convention is brittle because
518
518
when JavaScript code is minified the class name can sometimes change.
519
519
* This leaves our convention of ` Class.new() ` to explicitly signal the intent
520
- to instantiate a JavaScript class. While not idea it is clear and
520
+ to instantiate a JavaScript class. While not ideal it is clear and
521
521
unambiguous.
522
522
523
523
### PyScript events
@@ -838,11 +838,6 @@ def download_file(path, mime_type):
838
838
# should keep the memory clear for the session
839
839
```
840
840
841
- !!! warning
842
-
843
- This currently only works with Pyodide due to a bug instantiating
844
- `window.File` in MicroPython.
845
-
846
841
### create_proxy
847
842
848
843
The ` create_proxy ` function is described in great detail
@@ -1148,15 +1143,9 @@ you're using Pyodide or MicroPython as your interpreter.
1148
1143
**When using `pyscript.to_js`, the result is detached from the original
1149
1144
Python dictionary.**
1150
1145
1151
- Any change to the JavaScript object **will not be reflected in the original
1152
- Python object**. For the vast majority of use cases, this is a desirable
1153
- trade-off. But it's important to note this detachment.
1154
-
1155
- The ability for a ` Map ` to remain attached to the related Python ` dict ` is
1156
- perhaps an important reason Pyodide chose this implementation detail.
1157
- Therefore, if you have JavaScript code that requires changes of state to be
1158
- reflected in the Python world you should use the underlying ` pyodide.ffi.to_js `
1159
- API.
1146
+ Any change to the JavaScript object ** will not be reflected in the original
1147
+ Python object** . For the vast majority of use cases, this is a desirable
1148
+ trade-off. But it's important to note this detachment.
1160
1149
1161
1150
If you're simply passing data around, ` pyscript.ffi.to_js ` will fulfil your
1162
1151
requirements in a simple and idiomatic manner.
0 commit comments