8000 improve the comments · pyscript/pyscript@86bb287 · GitHub
[go: up one dir, main page]

Skip to content

Commit 86bb287

Browse files
committed
improve the comments
1 parent 82e733a commit 86bb287

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pyscript.core/src/plugins/pyterminal.js

Lines changed: 4 additions & 3 deletions
92FC
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,15 @@ addEventListener("py:ready", (event) => {
8989
xworker.sync.pyterminal_write = t.write;
9090
9191
// XXX: I know that the following lines don't work, but this is more or
92-
// lesswhat I would like to happen
93-
pyScript.io.stdout = (s, ...rest) => {
92+
// less what I would like to happen
93+
const something = ???;
94+
something.io.stdout = (s, ...rest) => {
9495
// this is JS code, and we cannot send arbitrary JS code from the main
9596
// to the worker. So maybe a solution is to hardcode this logic
9697
// directly inside the worker code?
9798
xworker.sync.pyterminal_write(s);
9899
}
99-
pyScript.io.stderr = (s, ...rest) => {
100+
something.io.stderr = (s, ...rest) => {
100101
xworker.sync.pyterminal_write(s);
101102
}
102103
something.runPython(`

0 commit comments

Comments
 (0)
0