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: patch-diff.githubusercontent.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:bd886f33-978f-3eb2-b9ce-b38544a4eee6 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | A194:44995:39BDA:4A775:696F6C2B |
| html-safe-nonce | c2b217470c78efcfe8a6f47455780233428bb3ec32ac96aef6f0a86522fae52d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTk0OjQ0OTk1OjM5QkRBOjRBNzc1OjY5NkY2QzJCIiwidmlzaXRvcl9pZCI6Ijg3ODU3MzIwNDY3MzU1MDIzNzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f285e00a84071930effd62c1eedd95fe0192c9f736ed4b2fbe2aedc81d4a0af2 |
| 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 | dd6be7b30d2e12704d0d9723ad4a7950f9e3ad8461efc40b5411aad62e847a89 |
| 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 | 0bab932a9532ed9bc2e3e2614af9348ab39af6a7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width