Title: "auto flush" tty optionally · Issue #270 · clj-python/libpython-clj · GitHub
Open Graph Title: "auto flush" tty optionally · Issue #270 · clj-python/libpython-clj
X Title: "auto flush" tty optionally · Issue #270 · clj-python/libpython-clj
Description: The fix of #216 is not fully solving the issue. using "libpythin-clj", there is so far no way to enforce "autoflush". So when a third party python library does not explicitly flush, then we cannot force it. And this can result in not see...
Open Graph Description: The fix of #216 is not fully solving the issue. using "libpythin-clj", there is so far no way to enforce "autoflush". So when a third party python library does not explicitly flush, then we cannot ...
X Description: The fix of #216 is not fully solving the issue. using "libpythin-clj", there is so far no way to enforce "autoflush". So when a third party python library does not explicitly fl...
Opengraph URL: https://github.com/clj-python/libpython-clj/issues/270
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"auto flush\" tty optionally","articleBody":"The fix of #216 is not fully solving the issue.\n\nusing \"libpythin-clj\", there is so far no way to enforce \"autoflush\".\nSo when a third party python library does not explicitly flush, then we cannot force it.\nAnd this can result in not seeing \"debug outputs\" on time for long running processes.\n(in my tests they only came when the JVM proccess ends)\n\n\nWhen using a normal \"python\" executable, there are some documented ways, but none of it is working with \"libpython-clj\".\n(using \"unbuffer\" and similar tricks, like env varaibales: PYTHONUNBUFFERED=false)\n\n\nOn this branch https://github.com/behrica/libpython-clj/tree/auto-flush\nI have a solution (so far hardcoded), which solves it.\nIt adds \"flush\" to each write.\n\nThis would need to be optional and configurable (eventually together with a way to configure as well the return value of \"isatty\" (which I did not need in my tests, false was working fine)","author":{"url":"https://github.com/behrica","@type":"Person","name":"behrica"},"datePublished":"2025-05-20T07:48:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/270/libpython-clj/issues/270"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9b0988ae-449d-582f-1123-106ab4981d1f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97E0:1231A2:C40154:10F7E6C:6A625392 |
| html-safe-nonce | fc528f1256fdc82a2ce0c8f43790765631c84abf8ee291cf7c912d361f2b850a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0UwOjEyMzFBMjpDNDAxNTQ6MTBGN0U2Qzo2QTYyNTM5MiIsInZpc2l0b3JfaWQiOiIxMDY1Nzk2MzU5NjI1NTI4MjEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 661ee13962d934b5bb083aaa1c8c41385370a471e727df191cc1b00c391ee052 |
| hovercard-subject-tag | issue:3076037556 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/clj-python/libpython-clj/270/issue_layout |
| twitter:image | https://opengraph.githubassets.com/12a57878dbdf758c0a596b5815ee47b052302ddc30e035d542d3e5a5ef7c2ea7/clj-python/libpython-clj/issues/270 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/12a57878dbdf758c0a596b5815ee47b052302ddc30e035d542d3e5a5ef7c2ea7/clj-python/libpython-clj/issues/270 |
| og:image:alt | The fix of #216 is not fully solving the issue. using "libpythin-clj", there is so far no way to enforce "autoflush". So when a third party python library does not explicitly flush, then we cannot ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | behrica |
| hostname | github.com |
| expected-hostname | github.com |
| None | b928dd27bb9305f313c737471c216297e218430ec505d064cf33d7d74af9bf89 |
| turbo-cache-control | no-preview |
| go-import | github.com/clj-python/libpython-clj git https://github.com/clj-python/libpython-clj.git |
| octolytics-dimension-user_id | 60827878 |
| octolytics-dimension-user_login | clj-python |
| octolytics-dimension-repository_id | 187095617 |
| octolytics-dimension-repository_nwo | clj-python/libpython-clj |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 187095617 |
| octolytics-dimension-repository_network_root_nwo | clj-python/libpython-clj |
| 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 | 6f728c3f39985ee4d171ffdd5591d8d2652392d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width