-
Notifications
You must be signed in to change notification settings - Fork 34
Using \N after exiting and restarting results in a function signature mismatch #69
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
Comments
i'm definitively not sure but it could be because of running in inspect mode https://github.com/ethanhs/python-wasm/blob/cef91af7ded9ff456eec633f346e085a9ccb038a/browser-ui/index.js#L22 where the interpreter may still persist after the first exit() and take a different code path for init. |
With some additional magic (
|
Fixed in python/cpython#32212 |
I can confirm that this is fixed in the live REPL (which now is up to date!) |
Series of steps which reveal the bug:
Start REPL
buttonprint("\N{digit nine}")
and hit Enter9
printed outexit()
and hit Enter (to exit the process)Start REPL
button againprint("\N{digit nine}")
and hit EnterSimilar series of working steps (notice no
\N{...}
was used)Start REPL
buttonprint("9")
and hit Enter9
printed outexit()
and hit Enter (to exit the process)Start REPL
button againprint("9")
and hint Enter9
printed outContext
This might seem like a strange bug to care about, but it's causing my Python pastebin site (which now runs Python code in-browser) to fail on some code examples. Specifically the "Run in Browser" button works the first time it's pressed but hangs the second time it's pressed. Here's a page that demonstrates the issue.
The text was updated successfully, but these errors were encountered: