René's URL Explorer Experiment


Title: `int.__round__(None)` is not supported · Issue #120080 · python/cpython · GitHub

Open Graph Title: `int.__round__(None)` is not supported · Issue #120080 · python/cpython

X Title: `int.__round__(None)` is not supported · Issue #120080 · python/cpython

Description: Bug report Bug description: The __round__ method on floats accepts None as an explicit argument, but the one on int does not: >>> (1.0).__round__(None) 1 >>> (1).__round__(None) Traceback (most recent call last): File "", line 1, ...

Open Graph Description: Bug report Bug description: The __round__ method on floats accepts None as an explicit argument, but the one on int does not: >>> (1.0).__round__(None) 1 >>> (1).__round__(None) Traceback (most rec...

X Description: Bug report Bug description: The __round__ method on floats accepts None as an explicit argument, but the one on int does not: >>> (1.0).__round__(None) 1 >>> (1).__round__(None) T...

Opengraph URL: https://github.com/python/cpython/issues/120080

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`int.__round__(None)` is not supported","articleBody":"# Bug report\n\n### Bug description:\n\nThe `__round__` method on floats accepts None as an explicit argument, but the one on int does not:\n\n```python\n>>> (1.0).__round__(None)\n1\n>>> (1).__round__(None)\nTraceback (most recent call last):\n  File \"\u003cstdin>\", line 1, in \u003cmodule>\nTypeError: 'NoneType' object cannot be interpreted as an integer\n```\n\nThis goes against the general principle that any operation that works on a float should also work on an int.\n\n(Note that both `round(x)` and `round(x, None)` work on both floats and ints; this issue is entirely about direct calls to `.__round__()`.)\n\n### CPython versions tested on:\n\n3.12, CPython main branch\n\n### Operating systems tested on:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-120088\n* gh-120197\n* gh-120328\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/JelleZijlstra","@type":"Person","name":"JelleZijlstra"},"datePublished":"2024-06-04T23:09:08Z","url":"https://github.com/python/cpython/issues/120080"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:5dd4ee84-db52-f82e-03b3-3cb812eb9896
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA302:CF959:278C363:33946FB:6AFFFA4C
html-safe-nonce7f1f0e915f1532534a3209d9a4e224079bededf967b687ed9aef6b188322c2ca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzAyOkNGOTU5OjI3OEMzNjM6MzM5NDZGQjo2QUZGRkE0QyIsInZpc2l0b3JfaWQiOiI1NDE1MjUwMDQ3ODE2MTU2OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2c1a4cafdac730c7e2e551f3f957f605d2c5f9d0c53f8e66694d6d685fe17944
hovercard-subject-tagissue:2334526017
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/120080/issue_layout
twitter:imagehttps://opengraph.githubassets.com/faa28f119fa7cc59373164ad06e0d928bf597b2308c16f845123bfe95fa30700/python/cpython/issues/120080
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/faa28f119fa7cc59373164ad06e0d928bf597b2308c16f845123bfe95fa30700/python/cpython/issues/120080
og:image:altBug report Bug description: The __round__ method on floats accepts None as an explicit argument, but the one on int does not: >>> (1.0).__round__(None) 1 >>> (1).__round__(None) Traceback (most rec...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJelleZijlstra
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/120080#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F120080
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F120080
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/120080
Reloadhttps://github.com/python/cpython/issues/120080
Reloadhttps://github.com/python/cpython/issues/120080
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/120080
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/120080
int.__round__(None) is not supportedhttps://github.com/python/cpython/issues/120080#top
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
easyhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22easy%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
on Jun 4, 2024https://github.com/python/cpython/issues/120080#issue-2334526017
gh-120080: Accept None as a valid argument for direct call of the int.__round__ #120088https://github.com/python/cpython/pull/120088
[3.13] gh-120080: Accept None as a valid argument for direct call of the int.__round__ (GH-120088) #120197https://github.com/python/cpython/pull/120197
gh-120080: Mark test_round_with_none_arg_direct_call as cpython_only #120328https://github.com/python/cpython/pull/120328
JelleZijlstrahttps://github.com/JelleZijlstra
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
easyhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22easy%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
on Jun 4, 2024https://github.com/python/cpython/issues/120080#event-13042830007
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jun 5, 2024https://github.com/python/cpython/issues/120080#issuecomment-2149282676
vstinnerhttps://github.com/vstinner
on Jun 7, 2024https://github.com/python/cpython/issues/120080#event-13076760283
gh-120080: Accept ``None`` as a valid argument for direct call of the…https://github.com/python/cpython/commit/57ad769076201c858a768d81047f6ea44925a33b
gh-120080https://github.com/python/cpython/issues/120080
57ad769https://github.com/python/cpython/commit/57ad769076201c858a768d81047f6ea44925a33b
miss-islingtonhttps://github.com/miss-islington
on Jun 7, 2024https://github.com/python/cpython/issues/120080#event-13076762136
pythongh-120080: Accept ``None`` as a valid argument for direct call …https://github.com/miss-islington/cpython/commit/4e3866e6d93fcfa280bb151403de31daf7c881e5
pythongh-120080https://github.com/python/cpython/issues/120080
4e3866ehttps://github.com/miss-islington/cpython/commit/4e3866e6d93fcfa280bb151403de31daf7c881e5
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jun 7, 2024https://github.com/python/cpython/issues/120080#issuecomment-2154320133
57ad769https://github.com/python/cpython/commit/57ad769076201c858a768d81047f6ea44925a33b
#120088 (comment)https://github.com/python/cpython/pull/120088#issuecomment-2154319318
vstinnerhttps://github.com/vstinner
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 7, 2024https://github.com/python/cpython/issues/120080#event-13076858041
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jun 7, 2024https://github.com/python/cpython/issues/120080#issuecomment-2154385331
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jun 7, 2024https://github.com/python/cpython/issues/120080#issuecomment-2154393441
https://discuss.python.org/t/ac-null-defaults-prevent-correct-signatures-lets-add-inspect-unrepresentable-to-fix-this/30753https://discuss.python.org/t/ac-null-defaults-prevent-correct-signatures-lets-add-inspect-unrepresentable-to-fix-this/30753
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jun 7, 2024https://github.com/python/cpython/issues/120080#issuecomment-2154419936
#73536https://github.com/python/cpython/issues/73536
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
on Jun 7, 2024https://github.com/python/cpython/issues/120080#issuecomment-2154457099
#73536https://github.com/python/cpython/issues/73536
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jun 7, 2024https://github.com/python/cpython/issues/120080#issuecomment-2154559528
#117671https://github.com/python/cpython/pull/117671
Eclips4https://github.com/Eclips4
on Jun 10, 2024https://github.com/python/cpython/issues/120080#event-13106071513
pythongh-120080: Mark test as cpython_onlyhttps://github.com/Eclips4/cpython/commit/769aae41f5abfb532d94040c41ab918576fb369d
pythongh-120080https://github.com/python/cpython/issues/120080
769aae4https://github.com/Eclips4/cpython/commit/769aae41f5abfb532d94040c41ab918576fb369d
vstinnerhttps://github.com/vstinner
on Jun 11, 2024https://github.com/python/cpython/issues/120080#event-13112406711
gh-120080: Mark test_round_with_none_arg_direct_call as cpython_only (#…https://github.com/python/cpython/commit/02c1dfff073a3dd6ce34a11b038defde291c2203
gh-120080https://github.com/python/cpython/issues/120080
#…https://github.com/python/cpython/pull/120328
02c1dffhttps://github.com/python/cpython/commit/02c1dfff073a3dd6ce34a11b038defde291c2203
mrahtzhttps://github.com/mrahtz
on Jun 30, 2024https://github.com/python/cpython/issues/120080#event-13341934947
pythongh-120080: Mark test_round_with_none_arg_direct_call as cpython…https://github.com/mrahtz/cpython/commit/22ffaf451b18e4fb8fdf0c43a21ae519274178ee
pythongh-120080https://github.com/python/cpython/issues/120080
22ffaf4https://github.com/mrahtz/cpython/commit/22ffaf451b18e4fb8fdf0c43a21ae519274178ee
estyxxhttps://github.com/estyxx
on Jul 17, 2024https://github.com/python/cpython/issues/120080#event-13533258500
pythongh-120080: Accept ``None`` as a valid argument for direct call …https://github.com/estyxx/cpython/commit/86ce3ff6edb7b6c9e1a8613a5b87fc2e018226d3
pythongh-120080https://github.com/python/cpython/issues/120080
86ce3ffhttps://github.com/estyxx/cpython/commit/86ce3ff6edb7b6c9e1a8613a5b87fc2e018226d3
pythongh-120080: Mark test_round_with_none_arg_direct_call as cpython…https://github.com/estyxx/cpython/commit/b9730630a654d018d41538e6af106d0079861705
pythongh-120080https://github.com/python/cpython/issues/120080
b973063https://github.com/estyxx/cpython/commit/b9730630a654d018d41538e6af106d0079861705
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/120080
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/120080
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
easyhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22easy%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.