René's URL Explorer Experiment


Title: GH-103319: Fix `inspect.getsourcelines()` to return 1-based line numbers by artemmukhin · Pull Request #103226 · python/cpython · GitHub

Open Graph Title: GH-103319: Fix `inspect.getsourcelines()` to return 1-based line numbers by artemmukhin · Pull Request #103226 · python/cpython

X Title: GH-103319: Fix `inspect.getsourcelines()` to return 1-based line numbers by artemmukhin · Pull Request #103226 · python/cpython

Description: The problem is described in GH-103225. I did not find any other usages of a line number returned by inspect.getsourcelines() except for pdb. However, I am not sure how many external usages of inspe...

Open Graph Description: The problem is described in GH-103225. I did not find any other usages of a line number returned by inspect.getsourcelines() except for pdb. However, I am not sure how many external usages of inspe...

X Description: The problem is described in GH-103225. I did not find any other usages of a line number returned by inspect.getsourcelines() except for pdb. However, I am not sure how many external usages of inspe...

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

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:02205d9b-267a-4e63-8e0c-3f9296f2fd55
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id943E:C8B0C:10C2F54:170E01E:696A97EA
html-safe-nonce967877184d45531e71d4ade0837f007a5682a947bd5386a1471ff6c642d18895
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDNFOkM4QjBDOjEwQzJGNTQ6MTcwRTAxRTo2OTZBOTdFQSIsInZpc2l0b3JfaWQiOiI0MzgzMTQ2NTE0MTQ1OTk2NTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca1841cf08f137ecc4705157de685179db2c1c4be2a25bd2957de935f04412447
hovercard-subject-tagpull_request:1300731830
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/103226/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b29aa8f656263fdc4db50220d5045e42947abe9a7994fa976ed9143b642aa39a/python/cpython/pull/103226
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b29aa8f656263fdc4db50220d5045e42947abe9a7994fa976ed9143b642aa39a/python/cpython/pull/103226
og:image:altThe problem is described in GH-103225. I did not find any other usages of a line number returned by inspect.getsourcelines() except for pdb. However, I am not sure how many external usages of inspe...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameartemmukhin
hostnamegithub.com
expected-hostnamegithub.com
Nonec0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af
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
release99aab454e5ddc8df30805fb76c114c3008a15842
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/103226#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F103226
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F103226
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/103226
Reloadhttps://github.com/python/cpython/pull/103226
Reloadhttps://github.com/python/cpython/pull/103226
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/103226
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/103226
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 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
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
Jump to bottomhttps://github.com/python/cpython/pull/103226#issue-comment-box
artemmukhinhttps://github.com/artemmukhin
python:mainhttps://github.com/python/cpython/tree/main
artemmukhin:fix-inspect-getsourcelines-linenohttps://github.com/artemmukhin/cpython/tree/fix-inspect-getsourcelines-lineno
GH-103319: Fix inspect.getsourcelines() to return 1-based line numbers https://github.com/python/cpython/pull/103226#top
artemmukhinhttps://github.com/artemmukhin
python:mainhttps://github.com/python/cpython/tree/main
artemmukhin:fix-inspect-getsourcelines-linenohttps://github.com/artemmukhin/cpython/tree/fix-inspect-getsourcelines-lineno
Conversation 9 https://github.com/python/cpython/pull/103226
Commits 2 https://github.com/python/cpython/pull/103226/commits
Checks 0 https://github.com/python/cpython/pull/103226/checks
Files changed https://github.com/python/cpython/pull/103226/files
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/artemmukhin
artemmukhinhttps://github.com/artemmukhin
Apr 3, 2023https://github.com/python/cpython/pull/103226#issue-1652818214
Please reload this pagehttps://github.com/python/cpython/pull/103226
GH-103225https://github.com/python/cpython/issues/103225
inspect.{getsourcelines, findsource} return 0 as the starting line number for modules #103319https://github.com/python/cpython/issues/103319
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.com/artemmukhin
pythonGH-103225https://github.com/python/cpython/issues/103225
: Fixhttps://github.com/python/cpython/pull/103226/commits/25585fc995d6989ea34e602c85b4ae41f2d7f9e0
inspect.getsourcelines()https://github.com/python/cpython/pull/103226/commits/25585fc995d6989ea34e602c85b4ae41f2d7f9e0
to return 1-based lin…https://github.com/python/cpython/pull/103226/commits/25585fc995d6989ea34e602c85b4ae41f2d7f9e0
25585fchttps://github.com/python/cpython/pull/103226/commits/25585fc995d6989ea34e602c85b4ae41f2d7f9e0
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Apr 3, 2023https://github.com/python/cpython/pull/103226#event-8917663070
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Apr 3, 2023 https://github.com/python/cpython/pull/103226#ref-issue-1652804872
pdb shows wrong line numbers for modules #103225 https://github.com/python/cpython/issues/103225
https://github.com/ghost
ghosthttps://github.com/ghost
Apr 3, 2023https://github.com/python/cpython/pull/103226#issuecomment-1495026882
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://cpython-clabot.herokuapp.com/signed-contributor-license-agreement?version=96a49432b8b111ec9bf5bfe9ad6c72c4
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.com/artemmukhin
artemmukhinhttps://github.com/artemmukhin
Apr 3, 2023https://github.com/python/cpython/pull/103226#issuecomment-1495029821
@iritkatrielhttps://github.com/iritkatriel
#101674https://github.com/python/cpython/pull/101674
@gaogaotiantianhttps://github.com/gaogaotiantian
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/103226/commits/d6e40120e8cc59ddd6897def201908a71d3263b4
d6e4012https://github.com/python/cpython/pull/103226/commits/d6e40120e8cc59ddd6897def201908a71d3263b4
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
Apr 3, 2023https://github.com/python/cpython/pull/103226#issuecomment-1495065372
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Apr 3, 2023https://github.com/python/cpython/pull/103226#issuecomment-1495087033
@iritkatrielhttps://github.com/iritkatriel
#101674https://github.com/python/cpython/pull/101674
@gaogaotiantianhttps://github.com/gaogaotiantian
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
Apr 3, 2023https://github.com/python/cpython/pull/103226#issuecomment-1495108901
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.com/arhadthedev
arhadthedevhttps://github.com/arhadthedev
stdlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astdlib
Apr 4, 2023https://github.com/python/cpython/pull/103226#event-8919828892
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Apr 4, 2023https://github.com/python/cpython/pull/103226#issuecomment-1495669410
@Yhg1shttps://github.com/Yhg1s
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.com/artemmukhin
artemmukhinhttps://github.com/artemmukhin
Apr 4, 2023https://github.com/python/cpython/pull/103226#issuecomment-1495712170
@iritkatrielhttps://github.com/iritkatriel
#103225https://github.com/python/cpython/issues/103225
@gaogaotiantianhttps://github.com/gaogaotiantian
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
Apr 6, 2023 https://github.com/python/cpython/pull/103226#ref-pullrequest-1654786763
gh-103225: Fixed zero lineno issue for pdb #103265 https://github.com/python/cpython/pull/103265
https://github.com/artemmukhin
artemmukhinhttps://github.com/artemmukhin
Apr 6, 2023https://github.com/python/cpython/pull/103226#issuecomment-1499494414
@iritkatrielhttps://github.com/iritkatriel
@gaogaotiantianhttps://github.com/gaogaotiantian
#103319https://github.com/python/cpython/issues/103319
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.com/artemmukhin
artemmukhinhttps://github.com/artemmukhin
Apr 6, 2023https://github.com/python/cpython/pull/103226#event-8948924355
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Apr 6, 2023 https://github.com/python/cpython/pull/103226#ref-issue-1657906766
inspect.{getsourcelines, findsource} return 0 as the starting line number for modules #103319 https://github.com/python/cpython/issues/103319
https://github.com/George-Ogden
George-Ogdenhttps://github.com/George-Ogden
Jul 20, 2025https://github.com/python/cpython/pull/103226#issuecomment-3094572602
Please reload this pagehttps://github.com/python/cpython/pull/103226
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%2F103226
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
stdlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Astdlib
Please reload this pagehttps://github.com/python/cpython/pull/103226
https://github.com/artemmukhin
https://github.com/gaogaotiantian
https://github.com/iritkatriel
https://github.com/George-Ogden
https://github.com/arhadthedev
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.