Title: Never use simple `print` · Issue #610 · usethis-python/usethis-python · GitHub
Open Graph Title: Never use simple `print` · Issue #610 · usethis-python/usethis-python
X Title: Never use simple `print` · Issue #610 · usethis-python/usethis-python
Description: Motivation We should always use a managed print to ensure --quiet is enforced. Something like: def plain_print(msg: str | Exception) -> None: msg = str(msg) if not usethis_config.quiet: console.print(msg) This is currently a bug in useth...
Open Graph Description: Motivation We should always use a managed print to ensure --quiet is enforced. Something like: def plain_print(msg: str | Exception) -> None: msg = str(msg) if not usethis_config.quiet: console.pri...
X Description: Motivation We should always use a managed print to ensure --quiet is enforced. Something like: def plain_print(msg: str | Exception) -> None: msg = str(msg) if not usethis_config.quiet: console....
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/610
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Never use simple `print`","articleBody":"**Motivation**\nWe should always use a managed print to ensure `--quiet` is enforced. Something like:\n\n```Python\n\ndef plain_print(msg: str | Exception) -\u003e None:\n msg = str(msg)\n\n if not usethis_config.quiet:\n console.print(msg)\n```\n\nThis is currently a bug in `usethis badge` for the fallback printing option.\n\n**Summary of desired enhancement**\nReplace simple `print` with a managed print function.","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2025-05-06T21:29:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/610/usethis-python/issues/610"}
| 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:0a8d81e6-2ec3-3c36-5319-4754041497da |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 898A:228A12:DCF89C:12F8975:6A4C9C53 |
| html-safe-nonce | 1711f88fdbae65f8ac03f4bbcf96c0191ce9137ec5a701ae482f9e9c14cd01a3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OThBOjIyOEExMjpEQ0Y4OUM6MTJGODk3NTo2QTRDOUM1MyIsInZpc2l0b3JfaWQiOiIzMDgwMTc1NjI1MzQxNTQxNDU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 553d8c10882a416147f5a824813d06487f77aeddb23655178768174ccfdd10cc |
| hovercard-subject-tag | issue:3044052536 |
| 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/usethis-python/usethis-python/610/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3f2bec8d51db52e87acf803d46d7759f27a78845d045e3dcd7f9a75f1999c34b/usethis-python/usethis-python/issues/610 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3f2bec8d51db52e87acf803d46d7759f27a78845d045e3dcd7f9a75f1999c34b/usethis-python/usethis-python/issues/610 |
| og:image:alt | Motivation We should always use a managed print to ensure --quiet is enforced. Something like: def plain_print(msg: str | Exception) -> None: msg = str(msg) if not usethis_config.quiet: console.pri... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nathanjmcdougall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-python |
| 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 | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width