Title: automatic integer to floating point conversion in format strings · Issue #1613 · RustPython/RustPython · GitHub
Open Graph Title: automatic integer to floating point conversion in format strings · Issue #1613 · RustPython/RustPython
X Title: automatic integer to floating point conversion in format strings · Issue #1613 · RustPython/RustPython
Description: Feature Format codes such as 'e', 'f', and 'g' are supported in format strings for integers in CPython, but not in RustPython in cpython >>> f'{5:f}' '5.000000' in RustPython >>>>> f'{5:f}' Traceback (most recent call last): File " Open Graph Description: Feature Format codes such as 'e', 'f', and 'g' are supported in format strings for integers in CPython, but not in RustPython in cpython >>> f'{5:f}' '5.000000' in RustPython >>>>> f'{5:f}' Traceba...
X Description: Feature Format codes such as 'e', 'f', and 'g' are supported in format strings for integers in CPython, but not in RustPython in cpython >>> f'{5:f}' '5...
Opengraph URL: https://github.com/RustPython/RustPython/issues/1613
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"automatic integer to floating point conversion in format strings","articleBody":"## Feature\r\n\r\nFormat codes such as 'e', 'f', and 'g' are supported in format strings for integers in CPython, but not in RustPython\r\n\r\n### in cpython\r\n\r\n```py\r\n\u003e\u003e\u003e f'{5:f}'\r\n'5.000000'\r\n```\r\n\r\n### in RustPython\r\n\r\n```py\r\n\u003e\u003e\u003e\u003e\u003e f'{5:f}'\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\nValueError: Unknown format code 'f' for object of type 'int'\r\n```\r\n\r\n## Python Documentation\r\n\r\nhttps://docs.python.org/3/library/string.html#formatspec\r\n\r\n","author":{"url":"https://github.com/lovasoa","@type":"Person","name":"lovasoa"},"datePublished":"2019-11-27T11:02:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1613/RustPython/issues/1613"}
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:4f77485f-ff59-8ba6-c73b-5e14f10b73d0 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id CDDA:134D84:2C3785E:3F0686B:6A590E4D html-safe-nonce 2f97ce0722fb7961ecaefff7101a75f5440d4416a16e713a938bf373b5c3cd37 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRERBOjEzNEQ4NDoyQzM3ODVFOjNGMDY4NkI6NkE1OTBFNEQiLCJ2aXNpdG9yX2lkIjoiMzQzMDM0MDA2OTg1MjUxNTkxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac 6044829e4ac7c215efe8d4846b6c8200715c69f6aca6cdeb54cfe6fc8e5d4744 hovercard-subject-tag issue:529273968 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/1613/issue_layout twitter:image https://opengraph.githubassets.com/26210a5af2b39677fdd1af0515a1c1cbfcaf2e571335f683950bf0209bed6343/RustPython/RustPython/issues/1613 twitter:card summary_large_image og:image https://opengraph.githubassets.com/26210a5af2b39677fdd1af0515a1c1cbfcaf2e571335f683950bf0209bed6343/RustPython/RustPython/issues/1613 og:image:alt Feature Format codes such as 'e', 'f', and 'g' are supported in format strings for integers in CPython, but not in RustPython in cpython >>> f'{5:f}' '5.000000' in RustPython >>>>> f'{5:f}' Traceba... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username lovasoa hostname github.com expected-hostname github.com None 4eb8ea312922ccce63e833964f9606d971cffb2d5b6c10a62c4a7dcc48d826e2 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 886a6c6fbce3d3caad5b3b995ef09ff6ca23f10e ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.