pyscript / docs

The source code for the official documentation of PyScript.
https://docs.pyscript.net
8 stars 10 forks source link

Fix #81 - Added F.A.Q. & Errors #92

Closed WebReflection closed 5 months ago

WebReflection commented 5 months ago

This MR fixes https://github.com/pyscript/docs/issues/81 by describing most common questions and issues that came to my mind, adding details around events, File System, showing examples that have all been tested with success and so on.

WebReflection commented 5 months ago

@ntoll thanks, I've completed the section with File System related common questions.

One thing that came up though is that in MicroPython it's pretty awkward, if not impossible, to transform Python bytearray into JS Uint8Array ... pyodide has its own conventions there (covered) but I think this might be a big deal for MicroPython users as as long as blobs, files, or buffers need to interoperate, we have issues, sometimes not even thrown (the upload also doesn't seem to work as it does in Pyodide).

I am going to merge this regardless so you'll have clear overall vision of everything and can change anything you like after.

WebReflection commented 5 months ago

damn it I clicked the close instead of merge 🤦‍♂️