-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyScript glitches #7
Comments
Issue: PyScript GlitchesI’ve reviewed the listed issues and would like to contribute the following observations:
Next Steps:I’m interested in working on some of these issues. Should I create separate pull requests for each, or would you prefer one comprehensive PR? Looking forward to your feedback! |
Thanks! I'd prefer small pr's for individual fixes. I am happy to review and merge incoming pr's, but note that PScript is not very actively developed, so you should decide how much time you think is worth to 'investing' in this project :) |
@almarklein commented on Tue Jan 03 2017
This is an issue to collect "glitches" in PyScript, because it's so easy to forget about them. We'll have to see whether to fix or document each one individually.
if x
, with x an object can resolve toFalse
if that object has alength
property.x = x or 0
does not work, sincetruthy()
returnsFalse
on a non-truthy and the original object otherwise.(fixed in String formatting +less limited dict literals + a string fix #17)elif this_is_js():
produces syntactically invalid JS.using(fixed in String formatting +less limited dict literals + a string fix #17)range()
brings in thepyfunc_range()
even if used in for-loop.assert x
does not usetruthy()
@Winand commented on Sun Jul 02 2017
(as of v0.4.1) pyscript
allows(fixed in #17)def catch():
and
this = ...
and produces invalid jsThe latter is still possible, because a user might still want to use
this
explicitly, and we only check use of names (not assignments) at this point.@Winand commented on Fri Jul 07 2017
produces invalid js source (variables are defined globally):
The text was updated successfully, but these errors were encountered: