Updated Polyscript to its latest#2364
Merged
WebReflection merged 4 commits intopyscript:mainfrom Aug 6, 2025
Merged
Conversation
1df9a8d to
b3c7e53
Compare
b3c7e53 to
1ff3f7d
Compare
ntoll
approved these changes
Jul 24, 2025
09cd014 to
7b81ce9
Compare
ntoll
approved these changes
Aug 6, 2025
d103083 to
c3997ae
Compare
9058e8b to
5033881
Compare
Contributor
Author
|
published on npm as |
WebReflection
added a commit
to WebReflection/pyscript
that referenced
this pull request
Aug 6, 2025
* Fix pyscript#2360 - Better shared env/setup handling (pyscript#2361) * Updated Polyscript to its latest * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * changed is_null to a more Pythonic is_none --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This MR updates polyscript to its latest plus:
pyscript.ffi.is_none(reference)helper to distinguish betweenNone(Python) andJsNull(JavaScript) ... watch out both Pyodide and MicroPython now returns ajsnullkind of reference when things are notundefined... theundefinedstill maps toNonethough, see https://pyodide.org/en/stable/usage/type-conversions.html#python-to-javascript and https://pyodide.org/en/stable/usage/type-conversions.html#javascript-to-pythonlockFileContentsto avoid breaking the cacheChanges
pyscript.ffi.is_noneto help distinguish betweennullandNoneorundefinedChecklist
make buildworks locally.