René's URL Explorer Experiment


Title: bpo-34876: Change the lineno of the AST for decorated function and class. by serhiy-storchaka · Pull Request #9731 · python/cpython · GitHub

Open Graph Title: bpo-34876: Change the lineno of the AST for decorated function and class. by serhiy-storchaka · Pull Request #9731 · python/cpython

X Title: bpo-34876: Change the lineno of the AST for decorated function and class. by serhiy-storchaka · Pull Request #9731 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: It was overridden by the lineno of the first decorator. Now it is the lineno of 'def' or 'class'. https://bugs.python.org/issue34876

X Description: It was overridden by the lineno of the first decorator. Now it is the lineno of 'def' or 'class'. https://bugs.python.org/issue34876

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:e6ae17ef-e367-3f37-6fa0-7c18c61e62de
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7D4:1CCBDE:24AB78C:3208286:6A53A20C
html-safe-nonce991668fcee6f8a02ec842ce7ac9f08f888ad0860e2830b5c8c04f15db6c5e798
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0Q0OjFDQ0JERToyNEFCNzhDOjMyMDgyODY6NkE1M0EyMEMiLCJ2aXNpdG9yX2lkIjoiNzY5MjkyOTk4MjUyNDUzMTIxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3462e22a2b9ee8017cb2f6d76bc1d725a25421b9379a8baa125cf8397e47e796
hovercard-subject-tagpull_request:220839455
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/9731/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d346cc939300e39022248bc854207f740ab4c760c3e46e585564e352bbc50635/python/cpython/pull/9731
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d346cc939300e39022248bc854207f740ab4c760c3e46e585564e352bbc50635/python/cpython/pull/9731
og:image:altIt was overridden by the lineno of the first decorator. Now it is the lineno of 'def' or 'class'. https://bugs.python.org/issue34876
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/9731#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F9731
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F9731
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/9731
Reloadhttps://github.com/python/cpython/pull/9731
Reloadhttps://github.com/python/cpython/pull/9731
Please reload this pagehttps://github.com/python/cpython/pull/9731
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/9731
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
serhiy-storchakahttps://github.com/serhiy-storchaka
python:masterhttps://github.com/python/cpython/tree/master
serhiy-storchaka:ast-decorated-linenohttps://github.com/serhiy-storchaka/cpython/tree/ast-decorated-lineno
Conversationhttps://github.com/python/cpython/pull/9731
Commits5 (5)https://github.com/python/cpython/pull/9731/commits
Checkshttps://github.com/python/cpython/pull/9731/checks
Files changedhttps://github.com/python/cpython/pull/9731/files
bpo-34876: Change the lineno of the AST for decorated function and class.https://github.com/python/cpython/pull/9731#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:masterhttps://github.com/python/cpython/tree/master
serhiy-storchaka:ast-decorated-linenohttps://github.com/serhiy-storchaka/cpython/tree/ast-decorated-lineno
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Oct 5, 2018https://github.com/python/cpython/pull/9731#issue-367387846
Please reload this pagehttps://github.com/python/cpython/pull/9731
https://bugs.python.org/issue34876https://bugs.python.org/issue34876
Please reload this pagehttps://github.com/python/cpython/pull/9731
https://github.com/serhiy-storchaka
bpo-34876: Change the lineno of the AST for decorated function and cl…https://github.com/python/cpython/pull/9731/commits/faadd30a7ff8932b9225bd504cc9af47efb1e764
faadd30https://github.com/python/cpython/pull/9731/commits/faadd30a7ff8932b9225bd504cc9af47efb1e764
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
Oct 5, 2018https://github.com/python/cpython/pull/9731#event-1888229475
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Oct 5, 2018https://github.com/python/cpython/pull/9731#event-1888229537
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Oct 5, 2018https://github.com/python/cpython/pull/9731#event-1888229555
serhiy-storchakahttps://github.com/serhiy-storchaka
October 6, 2018 11:44https://github.com/python/cpython/pull/9731#commits-pushed-6741cf5
https://github.com/serhiy-storchaka
Add tests.https://github.com/python/cpython/pull/9731/commits/6741cf52aa6945c1561693c80bc38f86a21e2dd9
6741cf5https://github.com/python/cpython/pull/9731/commits/6741cf52aa6945c1561693c80bc38f86a21e2dd9
https://github.com/serhiy-storchaka
Add a news entry.https://github.com/python/cpython/pull/9731/commits/244d3a4b41d63e5beac58f89ee7f8ff2d7abef24
244d3a4https://github.com/python/cpython/pull/9731/commits/244d3a4b41d63e5beac58f89ee7f8ff2d7abef24
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
DO-NOT-MERGE https://github.com/python/cpython/issues?q=state%3Aopen%20label%3ADO-NOT-MERGE
Oct 6, 2018https://github.com/python/cpython/pull/9731#event-1888549472
serhiy-storchakahttps://github.com/serhiy-storchaka
October 29, 2018 21:09https://github.com/python/cpython/pull/9731#commits-pushed-c6d3a8c
https://github.com/serhiy-storchaka
Merge branch 'master' into ast-decorated-linenohttps://github.com/python/cpython/pull/9731/commits/c6d3a8cda43638ddb9d9233f0a1d6d9ca0e11c5a
c6d3a8chttps://github.com/python/cpython/pull/9731/commits/c6d3a8cda43638ddb9d9233f0a1d6d9ca0e11c5a
https://github.com/serhiy-storchaka
Remove debug code.https://github.com/python/cpython/pull/9731/commits/815535fc5ee4a06bd6bdbe039b69a3434756aad1
815535fhttps://github.com/python/cpython/pull/9731/commits/815535fc5ee4a06bd6bdbe039b69a3434756aad1
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
95b6acfhttps://github.com/python/cpython/commit/95b6acf951fa7f503a3cc5ce7d969d7bcf2f95c9
Oct 30, 2018https://github.com/python/cpython/pull/9731#event-1934738460
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Oct 30, 2018https://github.com/python/cpython/pull/9731#event-1934738546
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
October 30, 2018 11:16https://github.com/python/cpython/pull/9731#event-1934738644
Expose more information about function line numbers python/typed_ast#50 https://github.com/python/typed_ast/issues/50
bpo-33211: Change line number of decorated nodes back to def #6460 https://github.com/python/cpython/pull/6460
https://github.com/emmatyping
emmatypinghttps://github.com/emmatyping
Jan 23, 2019 https://github.com/python/cpython/pull/9731#ref-pullrequest-318680722
[DO NOT MERGE] Fix def line numbers for decorated nodes python/typed_ast#61 https://github.com/python/typed_ast/pull/61
https://github.com/asottile
asottilehttps://github.com/asottile
Mar 15, 2019 https://github.com/python/cpython/pull/9731#ref-pullrequest-421317606
Fix line offsets with ScopeMismatch errors pytest-dev/pytest#4929 https://github.com/pytest-dev/pytest/pull/4929
https://github.com/digitalresistor
digitalresistorhttps://github.com/digitalresistor
Apr 1, 2019 https://github.com/python/cpython/pull/9731#ref-issue-423175944
Fix Python 3.8 test failure Pylons/pyramid#3471 https://github.com/Pylons/pyramid/issues/3471
https://github.com/mschwager
mschwagerhttps://github.com/mschwager
Sep 10, 2019 https://github.com/python/cpython/pull/9731#ref-issue-470346905
Add Python 3.8 support duo-labs/dlint#12 https://github.com/duo-labs/dlint/issues/12
https://github.com/jsfalk
jsfalkhttps://github.com/jsfalk
Feb 20, 2020 https://github.com/python/cpython/pull/9731#ref-pullrequest-568389296
fix #706 handling of lineno with decorators rstudio/reticulate#721 https://github.com/rstudio/reticulate/pull/721
openstack-gerrithttps://github.com/openstack-gerrit
Feb 28, 2020 https://github.com/python/cpython/pull/9731#ref-commit-44c081e
https://github.com/andreykurilin
Ensure python 3.8 is supportedhttps://github.com/openstack/rally/commit/44c081e234443bb12f7ccc2e10095a22dd2330fb
44c081ehttps://github.com/openstack/rally/commit/44c081e234443bb12f7ccc2e10095a22dd2330fb
https://bugs.python.org/issue35894https://bugs.python.org/issue35894
python/cpython#9731https://github.com/python/cpython/pull/9731
openstack-gerrithttps://github.com/openstack-gerrit
Feb 28, 2020 https://github.com/python/cpython/pull/9731#ref-commit-1e79b64
https://github.com/openstack-gerrit
Update git submoduleshttps://github.com/openstack/openstack/commit/1e79b64af73ae6a2151cf3ec89a44b0f32a8190e
1e79b64https://github.com/openstack/openstack/commit/1e79b64af73ae6a2151cf3ec89a44b0f32a8190e
https://bugs.python.org/issue35894https://bugs.python.org/issue35894
python/cpython#9731https://github.com/python/cpython/pull/9731
https://github.com/kasium
kasiumhttps://github.com/kasium
Nov 12, 2021 https://github.com/python/cpython/pull/9731#ref-issue-484874558
bad-docstring-quotes false positive when using decorators pylint-dev/pylint#3077 https://github.com/pylint-dev/pylint/issues/3077
https://github.com/Pierre-Sassoulas
Pierre-Sassoulashttps://github.com/Pierre-Sassoulas
Dec 5, 2021 https://github.com/python/cpython/pull/9731#ref-pullrequest-1064500781
Add doc_node attribute pylint-dev/astroid#1276 https://github.com/pylint-dev/astroid/pull/1276
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Oct 9, 2025 https://github.com/python/cpython/pull/9731#ref-issue-3498710308
Misbehavior of f.__code__.co_firstlineno for decorated functions #139838 https://github.com/python/cpython/issues/139838
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F9731
Please reload this pagehttps://github.com/python/cpython/pull/9731
https://github.com/serhiy-storchaka
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
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.