Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
2025.8.1 source code.tar.gz | 2025-08-07 | 2.2 MB | |
2025.8.1 source code.zip | 2025-08-07 | 2.3 MB | |
README.md | 2025-08-07 | 2.1 kB | |
Totals: 3 Items | 4.6 MB | 0 |
IMPORTANT - this release of PyScript uses a new version of Pyodide that has different behaviour relating to the handling of null
/ None
. THIS MAY BREAK YOUR CODE. Read the notes (especially regarding the pyscript.ffi.is_none
feature), to understand how PyScript supports you in this transition.
- All fetch operations now produce readable error messages when these happen: https://github.com/pyscript/polyscript/pull/146
- PyScript's package caching mechanism is now based on latest Pyodide
lockFileContents
: https://github.com/pyscript/polyscript/pull/144 - Update MicroPython to its
preview-386
version: https://github.com/pyscript/polyscript/pull/143 - Update Pyodide to its
0.28.1
version: https://pyodide.org/en/stable/project/changelog.html#version-0-28-1 and addedpyscript.ffi.is_none(renference)
to ease-out thenull
VSNone
distinction. - Add an explicit
pyscript.fs.remove(path)
option to both unmount that path and erase its content from the database: https://github.com/pyscript/pyscript/pull/2368 - Change
pyscript.WebSockets
default toarrayBuffer
to retrieve directly memory views: https://github.com/pyscript/pyscript/pull/2366 - Still on WebSockets, asynchronous listeners are now supported: https://github.com/pyscript/pyscript/pull/2366
- PyWorker args are now more user friendly: https://github.com/pyscript/pyscript/pull/2366
The most relevant Pyodide changes (more Pyodide context here):
- There is a new
pyodide.ffi.jsnull
reference which is the default type for JavaScrptnull
: goodbyenull
toNone
implicit conversion, we are providing apyscript.ffi.is_none(reference)
to ease-out this distinction that works regardless of the runtime. - If
jsobj
is a JavaScript proxy for a Pythondict
thenjsobj[name]
andjsobj.name
now works seamlessly, allowing a JS object representing a Pythondict
to be used in way more scenarios than before. For more information, see the Pyodide docs.