René's URL Explorer Experiment


Title: gh-57129: Add test for inspect.getsource in the REPL by pablogsal · Pull Request #111197 · python/cpython · GitHub

Open Graph Title: gh-57129: Add test for inspect.getsource in the REPL by pablogsal · Pull Request #111197 · python/cpython

X Title: gh-57129: Add test for inspect.getsource in the REPL by pablogsal · Pull Request #111197 · python/cpython

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

Open Graph Description: Issue: inspect.getsource only works for objects loaded from files, not interactive session #57129

X Description: Issue: inspect.getsource only works for objects loaded from files, not interactive session #57129

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

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:6a008f08-5283-1e6a-6702-f70796e12ed1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idECDA:1F62C5:AE1410:ED3FC0:6A520765
html-safe-nonced1f5d78850afdebd1073c91579877ea27451736fe98bea6bb37cde1f8f6b5e79
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0RBOjFGNjJDNTpBRTE0MTA6RUQzRkMwOjZBNTIwNzY1IiwidmlzaXRvcl9pZCI6IjM4NjY1NTEzMTkzOTQzODc4MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf71ccb1f790790edd413b1b978d3e9f7c726ff16a645bef7a3dbd7c19c73d290
hovercard-subject-tagpull_request:1568384295
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/111197/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/99132989b48ecd74458a494e8aaca6b80e65b65695e7fc6e4da080eef373bf01/python/cpython/pull/111197
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/99132989b48ecd74458a494e8aaca6b80e65b65695e7fc6e4da080eef373bf01/python/cpython/pull/111197
og:image:altIssue: inspect.getsource only works for objects loaded from files, not interactive session #57129
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepablogsal
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/111197#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F111197
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%2F111197
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/111197
Reloadhttps://github.com/python/cpython/pull/111197
Reloadhttps://github.com/python/cpython/pull/111197
Please reload this pagehttps://github.com/python/cpython/pull/111197
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/111197
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.7k 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
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
pablogsal:bpo-57129https://github.com/pablogsal/cpython/tree/bpo-57129
Conversationhttps://github.com/python/cpython/pull/111197
Commits2 (2)https://github.com/python/cpython/pull/111197/commits
Checkshttps://github.com/python/cpython/pull/111197/checks
Files changedhttps://github.com/python/cpython/pull/111197/files
gh-57129: Add test for inspect.getsource in the REPLhttps://github.com/python/cpython/pull/111197#top
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
pablogsal:bpo-57129https://github.com/pablogsal/cpython/tree/bpo-57129
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Oct 23, 2023https://github.com/python/cpython/pull/111197#issue-1956267228
Please reload this pagehttps://github.com/python/cpython/pull/111197
inspect.getsource only works for objects loaded from files, not interactive session #57129https://github.com/python/cpython/issues/57129
Please reload this pagehttps://github.com/python/cpython/pull/111197
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 23, 2023 https://github.com/python/cpython/pull/111197#ref-issue-1198872671
inspect.getsource only works for objects loaded from files, not interactive session #57129 https://github.com/python/cpython/issues/57129
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
tests https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests
Oct 23, 2023https://github.com/python/cpython/pull/111197#event-10735228175
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
skip issue https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20issue%22
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
tests https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atests
skip issue https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20issue%22
Oct 23, 2023https://github.com/python/cpython/pull/111197#event-10735228477
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
iritkatrielhttps://github.com/iritkatriel
October 23, 2023 03:10https://github.com/python/cpython/pull/111197#event-10735229193
https://github.com/pablogsal
pythongh-57129https://github.com/python/cpython/issues/57129
: Add test for inspect.getsource in the REPLhttps://github.com/python/cpython/pull/111197/commits/5dee2c07ffe155d6aabfdc321a873291063a227d
5dee2c0https://github.com/python/cpython/pull/111197/commits/5dee2c07ffe155d6aabfdc321a873291063a227d
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/cpython/compare/496f3b60d4838789aadd229cb7d56915fabcee76..5dee2c07ffe155d6aabfdc321a873291063a227d
496f3b6https://github.com/python/cpython/commit/496f3b60d4838789aadd229cb7d56915fabcee76
5dee2c0https://github.com/python/cpython/commit/5dee2c07ffe155d6aabfdc321a873291063a227d
Compare https://github.com/python/cpython/compare/496f3b60d4838789aadd229cb7d56915fabcee76..5dee2c07ffe155d6aabfdc321a873291063a227d
October 23, 2023 04:17https://github.com/python/cpython/pull/111197#event-10735514631
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Oct 23, 2023 https://github.com/python/cpython/pull/111197#pullrequestreview-1692714599
View reviewed changes https://github.com/python/cpython/pull/111197/files/5dee2c07ffe155d6aabfdc321a873291063a227d
Lib/test/test_inspect/test_inspect.pyhttps://github.com/python/cpython/pull/111197/files/5dee2c07ffe155d6aabfdc321a873291063a227d#diff-92d8ecc68ed9e7ce3b31a764d5b0368db1514365c2a6433bbe3bad5c3210cea0
iritkatrielhttps://github.com/iritkatriel
Oct 23, 2023https://github.com/python/cpython/pull/111197#discussion_r1368767828
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/111197
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Oct 23, 2023 https://github.com/python/cpython/pull/111197#pullrequestreview-1692723703
View reviewed changes https://github.com/python/cpython/pull/111197/files/5dee2c07ffe155d6aabfdc321a873291063a227d
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 core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Oct 23, 2023https://github.com/python/cpython/pull/111197#event-10741749187
https://github.com/pablogsal
fixup!https://github.com/python/cpython/pull/111197/commits/a2375df6b88952ccec7d09d186c60f8fe663f0e4
pythongh-57129https://github.com/python/cpython/issues/57129
: Add test for inspect.getsource in the REPLhttps://github.com/python/cpython/pull/111197/commits/a2375df6b88952ccec7d09d186c60f8fe663f0e4
a2375dfhttps://github.com/python/cpython/pull/111197/commits/a2375df6b88952ccec7d09d186c60f8fe663f0e4
https://github.com/iritkatriel
iritkatrielhttps://github.com/iritkatriel
Oct 24, 2023 https://github.com/python/cpython/pull/111197#pullrequestreview-1694581606
View reviewed changes https://github.com/python/cpython/pull/111197/files/a2375df6b88952ccec7d09d186c60f8fe663f0e4
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
3211d57https://github.com/python/cpython/commit/3211d5793f4437f86cd2fa11e86b4fd958932881
Oct 25, 2023https://github.com/python/cpython/pull/111197#event-10762683931
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
October 25, 2023 06:15https://github.com/python/cpython/pull/111197#event-10762684023
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
Oct 25, 2023https://github.com/python/cpython/pull/111197#event-10762684347
aiskhttps://github.com/aisk
Feb 11, 2024 https://github.com/python/cpython/pull/111197#ref-commit-eda6ad1
https://github.com/pablogsal
https://github.com/aisk
pythongh-57129https://github.com/python/cpython/issues/57129
: Add test for inspect.getsource in the REPL (https://github.com/aisk/cpython/commit/eda6ad1b0784fb427366c5f83e124235a75e5338
python#11…https://github.com/python/cpython/pull/111197
eda6ad1https://github.com/aisk/cpython/commit/eda6ad1b0784fb427366c5f83e124235a75e5338
…1197https://github.com/python/cpython/pull/111197
Glyphackhttps://github.com/Glyphack
Sep 2, 2024 https://github.com/python/cpython/pull/111197#ref-commit-501e2ed
https://github.com/pablogsal
https://github.com/Glyphack
pythongh-57129https://github.com/python/cpython/issues/57129
: Add test for inspect.getsource in the REPL (https://github.com/Glyphack/cpython/commit/501e2edbb81d3d4c9cc2a0b59f693ebf8943e26f
python#11…https://github.com/python/cpython/pull/111197
501e2edhttps://github.com/Glyphack/cpython/commit/501e2edbb81d3d4c9cc2a0b59f693ebf8943e26f
…1197https://github.com/python/cpython/pull/111197
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%2F111197
https://github.com/iritkatriel
iritkatriel https://github.com/iritkatriel
https://github.com/python/cpython/pull/111197/files/a2375df6b88952ccec7d09d186c60f8fe663f0e4
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/111197
https://github.com/pablogsal
https://github.com/iritkatriel
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.