Title: how should i redirect stdout in rustpython? · RustPython/RustPython · Discussion #5770 · GitHub
Open Graph Title: how should i redirect stdout in rustpython? · RustPython/RustPython · Discussion #5770
X Title: how should i redirect stdout in rustpython? · RustPython/RustPython · Discussion #5770
Description: how should i redirect stdout in rustpython?
Open Graph Description: "I've defined a Write object in Rust. How can I register it with RustPython so that the print function in Python code outputs to this object?
X Description: "I've defined a Write object in Rust. How can I register it with RustPython so that the print function in Python code outputs to this object?
Opengraph URL: https://github.com/RustPython/RustPython/discussions/5770
X: @github
Domain: github.com
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:9c002108-9231-b920-fa69-d2c585f18a60 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | 8B80:2AB9F0:2741435:33468EB:696487FE |
| html-safe-nonce | a6edf32c413696aa647564a92033a4bd2a26a541145c7541fbbb1347681eefb6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjgwOjJBQjlGMDoyNzQxNDM1OjMzNDY4RUI6Njk2NDg3RkUiLCJ2aXNpdG9yX2lkIjoiNjkxOTI0MDY1NTQ4MTExMjU3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7de870dd23778330c17e70903ffff0785c706e9c3f4521bd618382e24358c912 |
| hovercard-subject-tag | discussion:8289274 |
| github-keyboard-shortcuts | repository,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/RustPython/RustPython/5770/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/483efbe1a579772e7562ffbafb64966328efbac826acb2db9653a43b46d09058/RustPython/RustPython/discussions/5770 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/483efbe1a579772e7562ffbafb64966328efbac826acb2db9653a43b46d09058/RustPython/RustPython/discussions/5770 |
| og:image:alt | "I've defined a Write object in Rust. How can I register it with RustPython so that the print function in Python code outputs to this object? |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 842eff1d11f899d02b6b3b98fa3ea4860e64b34e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width