Skip to content
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

Feature: Pipe non-traceback stderr into the stderr state. #380

Open
glipR opened this issue Jun 20, 2024 · 0 comments
Open

Feature: Pipe non-traceback stderr into the stderr state. #380

glipR opened this issue Jun 20, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@glipR
Copy link

glipR commented Jun 20, 2024

Currently, because we don't pass the stderr function into pyodide initialisation, anything written to stderr that is not a traceback from an error just follows the default functionality, and gets sent to console.warn.

Preferably, anything written to sys.stderr in python should instead populate the stderr state from usePython.

MWE:
Paste the following code into the example from the react-py website:

import sys
print('test', file=sys.stderr)
@elilambnz elilambnz self-assigned this Aug 5, 2024
@elilambnz elilambnz added the enhancement New feature or request label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants