René's URL Explorer Experiment


Title: gh-116987: Remove re pattern check in inspect.findsource as it's not needed anymore by gaogaotiantian · Pull Request #117025 · python/cpython · GitHub

Open Graph Title: gh-116987: Remove re pattern check in inspect.findsource as it's not needed anymore by gaogaotiantian · Pull Request #117025 · python/cpython

X Title: gh-116987: Remove re pattern check in inspect.findsource as it's not needed anymore by gaogaotiantian · Pull Request #117025 · python/cpython

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

Open Graph Description: The pattern check code was added more than 20 years ago when code.co_firstlineno could be inaccurate (for multiline definitions maybe?). However, it's not needed anymore because code.co_firstli...

X Description: The pattern check code was added more than 20 years ago when code.co_firstlineno could be inaccurate (for multiline definitions maybe?). However, it's not needed anymore because code.co_fir...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:b8691f9a-56d7-87c1-ebe8-9633e303f98e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id81A4:113BA5:E42F97:133D6B3:6B064FF3
html-safe-nonce555ee5430607e17fcc2bd5d54665e5329535275b6e8ed965b689cd10518dbc2b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUE0OjExM0JBNTpFNDJGOTc6MTMzRDZCMzo2QjA2NEZGMyIsInZpc2l0b3JfaWQiOiI1NTcxMTQ1NDMwMjY1NjQ3MDkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacdd2564c46a36c4e6c6748af9521370b965ec3cf1cc825d3bed45b39b6cc0dcdd
hovercard-subject-tagpull_request:1780558490
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/117025/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d839e081a0918410d932d5d6535da5274580acbfd88bdd5b8ee450e5659d4e4f/python/cpython/pull/117025
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d839e081a0918410d932d5d6535da5274580acbfd88bdd5b8ee450e5659d4e4f/python/cpython/pull/117025
og:image:altThe pattern check code was added more than 20 years ago when code.co_firstlineno could be inaccurate (for multiline definitions maybe?). However, it's not needed anymore because code.co_firstli...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegaogaotiantian
hostnamegithub.com
expected-hostnamegithub.com
None772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e
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
releasef1f9a08f7c769a37f1dfc18ad43d463c222a7eea
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/117025#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F117025
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%2F117025
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/117025
Reloadhttps://github.com/python/cpython/pull/117025
Reloadhttps://github.com/python/cpython/pull/117025
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
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
gaogaotiantian:remove-code-pattern-checkhttps://github.com/gaogaotiantian/cpython/tree/remove-code-pattern-check
Conversationhttps://github.com/python/cpython/pull/117025
Commits6 (6)https://github.com/python/cpython/pull/117025/commits
Checkshttps://github.com/python/cpython/pull/117025/checks
Files changedhttps://github.com/python/cpython/pull/117025/files
gh-116987: Remove re pattern check in inspect.findsource as it's not needed anymorehttps://github.com/python/cpython/pull/117025#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
gaogaotiantian:remove-code-pattern-checkhttps://github.com/gaogaotiantian/cpython/tree/remove-code-pattern-check
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
Mar 19, 2024https://github.com/python/cpython/pull/117025#issue-2195718520
Please reload this pagehttps://github.com/python/cpython/pull/117025
#116987https://github.com/python/cpython/issues/116987
inspect.getsource does not work for a class-defined code object #116987https://github.com/python/cpython/issues/116987
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/gaogaotiantian
Remove re pattern check in inspect.findsource as it's not neededhttps://github.com/python/cpython/pull/117025/commits/cd8005ba855a11ebd025e8f8310019e0e342b9d5
cd8005bhttps://github.com/python/cpython/pull/117025/commits/cd8005ba855a11ebd025e8f8310019e0e342b9d5
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Mar 19, 2024https://github.com/python/cpython/pull/117025#event-12174032532
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Mar 19, 2024 https://github.com/python/cpython/pull/117025#ref-issue-2194496251
inspect.getsource does not work for a class-defined code object #116987 https://github.com/python/cpython/issues/116987
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Mar 19, 2024https://github.com/python/cpython/pull/117025#event-12174038000
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
serhiy-storchakahttps://github.com/serhiy-storchaka
March 19, 2024 18:40https://github.com/python/cpython/pull/117025#event-12174059265
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Mar 19, 2024https://github.com/python/cpython/pull/117025#issuecomment-2007965333
#116987https://github.com/python/cpython/issues/116987
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Mar 19, 2024https://github.com/python/cpython/pull/117025#event-12174734903
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/117025/commits/da731b4415a7faf306422e1d09ea376288b18931
da731b4https://github.com/python/cpython/pull/117025/commits/da731b4415a7faf306422e1d09ea376288b18931
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
Mar 19, 2024https://github.com/python/cpython/pull/117025#issuecomment-2007985711
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Mar 19, 2024 https://github.com/python/cpython/pull/117025#pullrequestreview-1947285515
View reviewed changes https://github.com/python/cpython/pull/117025/files/da731b4415a7faf306422e1d09ea376288b18931
Misc/NEWS.d/next/Library/2024-03-19-19-42-25.gh-issue-116987.ZVKUH1.rsthttps://github.com/python/cpython/pull/117025/files/cd8005ba855a11ebd025e8f8310019e0e342b9d5..da731b4415a7faf306422e1d09ea376288b18931#diff-ab2da2a167d2f13bb92daa30b94db43ee019d270727405fe391e91ae508331f6
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/gaogaotiantian
Update 2024-03-19-19-42-25.gh-issue-116987.ZVKUH1.rsthttps://github.com/python/cpython/pull/117025/commits/5267929e65bab026cf6e48bac2ae47a86b6ed8c0
5267929https://github.com/python/cpython/pull/117025/commits/5267929e65bab026cf6e48bac2ae47a86b6ed8c0
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Mar 19, 2024 https://github.com/python/cpython/pull/117025#pullrequestreview-1947432725
View reviewed changes https://github.com/python/cpython/pull/117025/files/5267929e65bab026cf6e48bac2ae47a86b6ed8c0
serhiy-storchakahttps://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/117025#pullrequestreview-1947432725
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Mar 19, 2024https://github.com/python/cpython/pull/117025#event-12176200099
https://github.com/blhsing
blhsinghttps://github.com/blhsing
Mar 20, 2024https://github.com/python/cpython/pull/117025#issuecomment-2008488800
Please reload this pagehttps://github.com/python/cpython/pull/117025
@gaogaotiantianhttps://github.com/gaogaotiantian
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/blhsing
blhsinghttps://github.com/blhsing
Mar 20, 2024 https://github.com/python/cpython/pull/117025#pullrequestreview-1947838744
View reviewed changes https://github.com/python/cpython/pull/117025/files/cd8005ba855a11ebd025e8f8310019e0e342b9d5
Lib/inspect.pyhttps://github.com/python/cpython/pull/117025/files/cd8005ba855a11ebd025e8f8310019e0e342b9d5#diff-b89cd06e4637abacb73f2500301ff979a67ad7ecbfa7cf151c7243715898d7ea
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/gaogaotiantian
Fix rangehttps://github.com/python/cpython/pull/117025/commits/763e23e4da1cb14e9eb4972111ad5f4193869832
763e23ehttps://github.com/python/cpython/pull/117025/commits/763e23e4da1cb14e9eb4972111ad5f4193869832
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Mar 20, 2024https://github.com/python/cpython/pull/117025#issuecomment-2009271905
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/gaogaotiantian
Add test case for class code objecthttps://github.com/python/cpython/pull/117025/commits/1f7d62fe79adfd474560599880a25a30c4f5b130
1f7d62fhttps://github.com/python/cpython/pull/117025/commits/1f7d62fe79adfd474560599880a25a30c4f5b130
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
Mar 20, 2024https://github.com/python/cpython/pull/117025#issuecomment-2010179322
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
March 20, 2024 18:04https://github.com/python/cpython/pull/117025#event-12189235507
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
Mar 20, 2024https://github.com/python/cpython/pull/117025#issuecomment-2010312431
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/serhiy-storchaka
Merge branch 'main' into remove-code-pattern-checkhttps://github.com/python/cpython/pull/117025/commits/6f6c66f6513a0f653d875371d79fc5a3c5bb18ec
6f6c66fhttps://github.com/python/cpython/pull/117025/commits/6f6c66f6513a0f653d875371d79fc5a3c5bb18ec
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
d16c9d1https://github.com/python/cpython/commit/d16c9d1278164f04778861814ebc87ed087511fc
Mar 21, 2024https://github.com/python/cpython/pull/117025#event-12198237805
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Mar 21, 2024https://github.com/python/cpython/pull/117025#event-12198238481
https://github.com/gaogaotiantian
gaogaotiantianhttps://github.com/gaogaotiantian
March 21, 2024 16:13https://github.com/python/cpython/pull/117025#event-12203431874
adorilsonhttps://github.com/adorilson
Mar 25, 2024 https://github.com/python/cpython/pull/117025#ref-commit-edf7e63
https://github.com/gaogaotiantian
https://github.com/adorilson
pythongh-116987https://github.com/python/cpython/issues/116987
: Support class code objects in inspect.findsource() (https://github.com/adorilson/cpython/commit/edf7e6386cc6066ec536424962fcb9f4105d2562
p…https://github.com/python/cpython/pull/117025
edf7e63https://github.com/adorilson/cpython/commit/edf7e6386cc6066ec536424962fcb9f4105d2562
…ythonGH-117025https://github.com/python/cpython/pull/117025
NGRsoftlabhttps://github.com/NGRsoftlab
Apr 2, 2024 https://github.com/python/cpython/pull/117025#ref-commit-1b5fe4c
https://github.com/ngr-ilmarh
Squashed commit of the following:https://github.com/NGRsoftlab/cpython/commit/1b5fe4cad096e32efee3a0477ef6f277ec2a2b96
1b5fe4chttps://github.com/NGRsoftlab/cpython/commit/1b5fe4cad096e32efee3a0477ef6f277ec2a2b96
NGRsoftlabhttps://github.com/NGRsoftlab
Apr 2, 2024 https://github.com/python/cpython/pull/117025#ref-commit-a016a54
https://github.com/ngr-ilmarh
Squashed commit of the following:https://github.com/NGRsoftlab/cpython/commit/a016a5413a6d8bd02939a6fb9afef90dbbb2fb54
a016a54https://github.com/NGRsoftlab/cpython/commit/a016a5413a6d8bd02939a6fb9afef90dbbb2fb54
diegorussohttps://github.com/diegorusso
Apr 17, 2024 https://github.com/python/cpython/pull/117025#ref-commit-1e556ed
https://github.com/gaogaotiantian
https://github.com/diegorusso
pythongh-116987https://github.com/python/cpython/issues/116987
: Support class code objects in inspect.findsource() (https://github.com/diegorusso/cpython/commit/1e556ed1015e6a9a9979abdf60939ee227ac8dbc
p…https://github.com/python/cpython/pull/117025
1e556edhttps://github.com/diegorusso/cpython/commit/1e556ed1015e6a9a9979abdf60939ee227ac8dbc
…ythonGH-117025https://github.com/python/cpython/pull/117025
https://github.com/picnixz
picnixzhttps://github.com/picnixz
Aug 27, 2024 https://github.com/python/cpython/pull/117025#ref-pullrequest-2487279208
gh-123339: fix out-of-bounds values in inspect.findsource #123347 https://github.com/python/cpython/pull/123347
inspect.getsourcelines() mishandles multi-line generator expressions #137477 https://github.com/python/cpython/issues/137477
gh-137477: Extend regex pattern check in inspect.findsource #137479 https://github.com/python/cpython/pull/137479
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%2F117025
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/117025/files/5267929e65bab026cf6e48bac2ae47a86b6ed8c0
https://github.com/blhsing
blhsing https://github.com/blhsing
https://github.com/python/cpython/pull/117025/files/cd8005ba855a11ebd025e8f8310019e0e342b9d5
Please reload this pagehttps://github.com/python/cpython/pull/117025
inspect.getsource does not work for a class-defined code object https://github.com/python/cpython/issues/116987
Please reload this pagehttps://github.com/python/cpython/pull/117025
https://github.com/gaogaotiantian
https://github.com/serhiy-storchaka
https://github.com/blhsing
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.