Title: Panic occurs when formatting with separator and some format specifier · Issue #6212 · RustPython/RustPython · GitHub
Open Graph Title: Panic occurs when formatting with separator and some format specifier · Issue #6212 · RustPython/RustPython
X Title: Panic occurs when formatting with separator and some format specifier · Issue #6212 · RustPython/RustPython
Description: >>>>> f"{123456:,g}" thread 'main' panicked at common/src/format.rs:429:18: Separators only valid for numbers! note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace >>>>> f"{123456:,e}" thread 'main' panicked at c...
Open Graph Description: >>>>> f"{123456:,g}" thread 'main' panicked at common/src/format.rs:429:18: Separators only valid for numbers! note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace >>>>> f"...
X Description: >>>>> f"{123456:,g}" thread 'main' panicked at common/src/format.rs:429:18: Separators only valid for numbers! note: run with `RUST_BACKTRACE=1` environment variabl...
Opengraph URL: https://github.com/RustPython/RustPython/issues/6212
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Panic occurs when formatting with separator and some format specifier","articleBody":"```\n\u003e\u003e\u003e\u003e\u003e f\"{123456:,g}\"\n\nthread 'main' panicked at common/src/format.rs:429:18:\nSeparators only valid for numbers!\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\n\u003e\u003e\u003e\u003e\u003e f\"{123456:,e}\"\n\nthread 'main' panicked at common/src/format.rs:429:18:\nSeparators only valid for numbers!\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace\n```\n\nBut in Python 3.13.5, output is below.\n\n```\n\u003e\u003e\u003e f\"{123456:,g}\"\n'123,456'\n\u003e\u003e\u003e f\"{123456:,e}\"\n'1.234560e+05'\n```\n\nI'll fix this bug.","author":{"url":"https://github.com/yt2b","@type":"Person","name":"yt2b"},"datePublished":"2025-10-24T01:09:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6212/RustPython/issues/6212"}
| 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:3aa1e22b-10e9-9a54-9bc5-3296f488ff00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFDE:1860A8:EEEC3B:14BA441:696A85A9 |
| html-safe-nonce | fa5810af468e4092db7f1e9d3ed37c94d8699c3e8e9cf4aef32ffcc903ad5667 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkRFOjE4NjBBODpFRUVDM0I6MTRCQTQ0MTo2OTZBODVBOSIsInZpc2l0b3JfaWQiOiIzNjk4ODMzODI1NzIyOTU5MjczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f3d3dba59b3502f189021b8929600c65def931ba6ebdaf2c09c618fc3066bdb7 |
| hovercard-subject-tag | issue:3547181538 |
| 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/RustPython/RustPython/6212/issue_layout |
| twitter:image | https://opengraph.githubassets.com/74fc56a2feed01349a9f8e204600dc81bcd4cc8d6b8da0a5305cf89431361647/RustPython/RustPython/issues/6212 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/74fc56a2feed01349a9f8e204600dc81bcd4cc8d6b8da0a5305cf89431361647/RustPython/RustPython/issues/6212 |
| og:image:alt | >>>>> f"{123456:,g}" thread 'main' panicked at common/src/format.rs:429:18: Separators only valid for numbers! note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace >>>>> f"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yt2b |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| 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 | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width