Title: itertools: fix count() repr to show float step 1.0 by JaceJung-dev · Pull Request #8261 · RustPython/RustPython · GitHub
Open Graph Title: itertools: fix count() repr to show float step 1.0 by JaceJung-dev · Pull Request #8261 · RustPython/RustPython
X Title: itertools: fix count() repr to show float step 1.0 by JaceJung-dev · Pull Request #8261 · RustPython/RustPython
Description: A Python Interpreter written in Rust. Contribute to RustPython/RustPython development by creating an account on GitHub.
Open Graph Description: This PR follows our AI policy. Summary itertools.count()'s __repr__ omitted the step when it equalled 1, but CPython omits the step only for the integer 1 — a float step of 1.0 should still be...
X Description: This PR follows our AI policy. Summary itertools.count()'s __repr__ omitted the step when it equalled 1, but CPython omits the step only for the integer 1 — a float step of 1.0 should stil...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8261
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:052b6a75-06a1-4793-619f-057f64fa61c9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EAA2:1712DC:63BD52D:82CA07C:6A5DC299 |
| html-safe-nonce | d3b3dd6251772621aac6fe0201dbb3cca7ee2fe38b8f7632250353942bbf6bfa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUEyOjE3MTJEQzo2M0JENTJEOjgyQ0EwN0M6NkE1REMyOTkiLCJ2aXNpdG9yX2lkIjoiMjA1OTgxNzgwMDk5NTU1Mzk0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0a99c7757cead30947c007a87c8eb237f48a5e207e8ab75043ce5ffb2e4015b5 |
| hovercard-subject-tag | pull_request:4038918408 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/RustPython/RustPython/pull/8261/commits |
| twitter:image | https://opengraph.githubassets.com/3df6b3eb85d62fb36f52458293d8e8a2c987d6b09e9eb2a120bd666d9cc28114/RustPython/RustPython/pull/8261 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3df6b3eb85d62fb36f52458293d8e8a2c987d6b09e9eb2a120bd666d9cc28114/RustPython/RustPython/pull/8261 |
| og:image:alt | This PR follows our AI policy. Summary itertools.count()'s __repr__ omitted the step when it equalled 1, but CPython omits the step only for the integer 1 — a float step of 1.0 should still be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JaceJung-dev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-cache |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width