René's URL Explorer Experiment


Title: bpo-43682: @staticmethod inherits attributes by vstinner · Pull Request #25268 · python/cpython · GitHub

Open Graph Title: bpo-43682: @staticmethod inherits attributes by vstinner · Pull Request #25268 · python/cpython

X Title: bpo-43682: @staticmethod inherits attributes by vstinner · Pull Request #25268 · python/cpython

Description: Static methods (@staticmethod) and class methods (@classmethod) now inherit the method attributes (module, name, qualname, doc, annotations) and have a new wrapped attribute. Changes: Add a repr() method to staticmethod and classmethod types. Add tests on the @classmethod decorator. https://bugs.python.org/issue43682

Open Graph Description: Static methods (@staticmethod) and class methods (@classmethod) now inherit the method attributes (module, name, qualname, doc, annotations) and have a new wrapped attribute. Changes: Add a repr()...

X Description: Static methods (@staticmethod) and class methods (@classmethod) now inherit the method attributes (module, name, qualname, doc, annotations) and have a new wrapped attribute. Changes: Add a repr()...

Opengraph URL: https://github.com/python/cpython/pull/25268

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b8602859-d907-04f5-3ffa-c21acb43199e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA8DC:842EC:15EDD:1E5E6:6B00B71F
html-safe-noncee4e5d879f4b455319fedf217a11e76751f09b4afa0b5340151ab50acfa55f97f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOERDOjg0MkVDOjE1RUREOjFFNUU2OjZCMDBCNzFGIiwidmlzaXRvcl9pZCI6Ijc1NzUzNjg5NDUxNjM2MTM5ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac632832bc8998220191381c2fe746f6dedd489901077c3879901b10bbdd121d6b
hovercard-subject-tagpull_request:611092473
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/25268/files
twitter:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
og:image:altStatic methods (@staticmethod) and class methods (@classmethod) now inherit the method attributes (module, name, qualname, doc, annotations) and have a new wrapped attribute. Changes: Add a repr()...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1d07c25977adfc5ff6acb0a962a9bc168c07afbda6fef765f9761c350c2ae4a2
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5429cbfc6aca8c7b9a086a3c8f47400346f38cc9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/25268/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F25268%2Ffiles
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%2Fpull%2F25268%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/25268/files
Reloadhttps://github.com/python/cpython/pull/25268/files
Reloadhttps://github.com/python/cpython/pull/25268/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
vstinnerhttps://github.com/vstinner
python:masterhttps://github.com/python/cpython/tree/master
Conversation 7 https://github.com/python/cpython/pull/25268
Commits 3 https://github.com/python/cpython/pull/25268/commits
Checks 0 https://github.com/python/cpython/pull/25268/checks
Files changed https://github.com/python/cpython/pull/25268/files
Please reload this pagehttps://github.com/python/cpython/pull/25268/files
bpo-43682: @staticmethod inherits attributes https://github.com/python/cpython/pull/25268/files#top
Show all changes 3 commits https://github.com/python/cpython/pull/25268/files
b50eb07 bpo-43682: @staticmethod inherits method attributes vstinner Apr 7, 2021 https://github.com/python/cpython/pull/25268/commits/b50eb0714a1f5836e1d881067d6ca72c628c8100
1b1e12b Factorize tests vstinner Apr 7, 2021 https://github.com/python/cpython/pull/25268/commits/1b1e12b4f90e2411a3d19885ba7f79ac297b0ceb
80469c9 Fix tests vstinner Apr 8, 2021 https://github.com/python/cpython/pull/25268/commits/80469c901d8a2efde429fed38dd7dfc08c8ab84e
Clear filters https://github.com/python/cpython/pull/25268/files
Please reload this pagehttps://github.com/python/cpython/pull/25268/files
Please reload this pagehttps://github.com/python/cpython/pull/25268/files
functions.rst https://github.com/python/cpython/pull/25268/files#diff-6a7a07ac473fdd76734669b1b70626ad2176011129902f6add017810f54d0439
3.10.rst https://github.com/python/cpython/pull/25268/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c
test_decorators.py https://github.com/python/cpython/pull/25268/files#diff-9b0e146d781fe420af084a173b86ca0c980b7ef10c8905a8ff2dbf28305df11b
test_descr.py https://github.com/python/cpython/pull/25268/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
test_pydoc.py https://github.com/python/cpython/pull/25268/files#diff-ae73926bd5950f3b4293553200949f1bcb58bae55d13d81b20d4d82d82912621
test_reprlib.py https://github.com/python/cpython/pull/25268/files#diff-2ccfcd381aba1c1087443b0b47d103c25f33eed2e15c53f09bfde07de657f9c4
2021-04-08-01-06-22.bpo-43682.eUn4p5.rst https://github.com/python/cpython/pull/25268/files#diff-44aef98a8faa5ad75e061ac929960cc7452c0225abb846440e95efc31f8118d7
funcobject.c https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
Doc/library/functions.rsthttps://github.com/python/cpython/pull/25268/files#diff-6a7a07ac473fdd76734669b1b70626ad2176011129902f6add017810f54d0439
View file https://github.com/python/cpython/blob/80469c901d8a2efde429fed38dd7dfc08c8ab84e/Doc/library/functions.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25268/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25268/files#diff-6a7a07ac473fdd76734669b1b70626ad2176011129902f6add017810f54d0439
https://github.com/python/cpython/pull/25268/files#diff-6a7a07ac473fdd76734669b1b70626ad2176011129902f6add017810f54d0439
https://github.com/python/cpython/pull/25268/files#diff-6a7a07ac473fdd76734669b1b70626ad2176011129902f6add017810f54d0439
https://github.com/python/cpython/pull/25268/files#diff-6a7a07ac473fdd76734669b1b70626ad2176011129902f6add017810f54d0439
Doc/whatsnew/3.10.rsthttps://github.com/python/cpython/pull/25268/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c
View file https://github.com/python/cpython/blob/80469c901d8a2efde429fed38dd7dfc08c8ab84e/Doc/whatsnew/3.10.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25268/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25268/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c
https://github.com/python/cpython/pull/25268/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c
Lib/test/test_decorators.pyhttps://github.com/python/cpython/pull/25268/files#diff-9b0e146d781fe420af084a173b86ca0c980b7ef10c8905a8ff2dbf28305df11b
View file https://github.com/python/cpython/blob/80469c901d8a2efde429fed38dd7dfc08c8ab84e/Lib/test/test_decorators.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25268/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25268/files#diff-9b0e146d781fe420af084a173b86ca0c980b7ef10c8905a8ff2dbf28305df11b
https://github.com/python/cpython/pull/25268/files#diff-9b0e146d781fe420af084a173b86ca0c980b7ef10c8905a8ff2dbf28305df11b
https://github.com/python/cpython/pull/25268/files#diff-9b0e146d781fe420af084a173b86ca0c980b7ef10c8905a8ff2dbf28305df11b
Lib/test/test_descr.pyhttps://github.com/python/cpython/pull/25268/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
View file https://github.com/python/cpython/blob/80469c901d8a2efde429fed38dd7dfc08c8ab84e/Lib/test/test_descr.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25268/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25268/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
https://github.com/python/cpython/pull/25268/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
https://github.com/python/cpython/pull/25268/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
https://github.com/python/cpython/pull/25268/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
https://github.com/python/cpython/pull/25268/files#diff-6b813570d02ae3544e7e0233ae21d647f8e2dc47486495557e8d16c80460e85b
Lib/test/test_pydoc.pyhttps://github.com/python/cpython/pull/25268/files#diff-ae73926bd5950f3b4293553200949f1bcb58bae55d13d81b20d4d82d82912621
View file https://github.com/python/cpython/blob/80469c901d8a2efde429fed38dd7dfc08c8ab84e/Lib/test/test_pydoc.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25268/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25268/files#diff-ae73926bd5950f3b4293553200949f1bcb58bae55d13d81b20d4d82d82912621
https://github.com/python/cpython/pull/25268/files#diff-ae73926bd5950f3b4293553200949f1bcb58bae55d13d81b20d4d82d82912621
https://github.com/python/cpython/pull/25268/files#diff-ae73926bd5950f3b4293553200949f1bcb58bae55d13d81b20d4d82d82912621
Lib/test/test_reprlib.pyhttps://github.com/python/cpython/pull/25268/files#diff-2ccfcd381aba1c1087443b0b47d103c25f33eed2e15c53f09bfde07de657f9c4
View file https://github.com/python/cpython/blob/80469c901d8a2efde429fed38dd7dfc08c8ab84e/Lib/test/test_reprlib.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25268/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25268/files#diff-2ccfcd381aba1c1087443b0b47d103c25f33eed2e15c53f09bfde07de657f9c4
https://github.com/python/cpython/pull/25268/files#diff-2ccfcd381aba1c1087443b0b47d103c25f33eed2e15c53f09bfde07de657f9c4
Misc/NEWS.d/next/Core and Builtins/2021-04-08-01-06-22.bpo-43682.eUn4p5.rsthttps://github.com/python/cpython/pull/25268/files#diff-44aef98a8faa5ad75e061ac929960cc7452c0225abb846440e95efc31f8118d7
View file https://github.com/python/cpython/blob/80469c901d8a2efde429fed38dd7dfc08c8ab84e/Misc/NEWS.d/next/Core%20and%20Builtins/2021-04-08-01-06-22.bpo-43682.eUn4p5.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25268/{{ revealButtonHref }}
Objects/funcobject.chttps://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
View file https://github.com/python/cpython/blob/80469c901d8a2efde429fed38dd7dfc08c8ab84e/Objects/funcobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/25268/{{ revealButtonHref }}
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
serhiy-storchakahttps://github.com/serhiy-storchaka
Jul 1, 2023https://github.com/python/cpython/pull/25268/files#r1248679489
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#106303https://github.com/python/cpython/issues/106303
Please reload this pagehttps://github.com/python/cpython/pull/25268/files
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
https://github.com/python/cpython/pull/25268/files#diff-57bc77178b3d6f1010dd924722c87522f224d93bc341f0e46c0945094124d8f2
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.