Title: inspect.getsource can't get source code if provided function isn't from a file · Issue #68679 · python/cpython · GitHub
Open Graph Title: inspect.getsource can't get source code if provided function isn't from a file · Issue #68679 · python/cpython
X Title: inspect.getsource can't get source code if provided function isn't from a file · Issue #68679 · python/cpython
Description: BPO 24491 Nosy @ned-deily Superseder bpo-12920: inspect.getsource only works for objects loaded from files, not interactive session Note: these values reflect the state of the issue at the time it was migrated and might not reflect the c...
Open Graph Description: BPO 24491 Nosy @ned-deily Superseder bpo-12920: inspect.getsource only works for objects loaded from files, not interactive session Note: these values reflect the state of the issue at the time it ...
X Description: BPO 24491 Nosy @ned-deily Superseder bpo-12920: inspect.getsource only works for objects loaded from files, not interactive session Note: these values reflect the state of the issue at the time it ...
Opengraph URL: https://github.com/python/cpython/issues/68679
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"inspect.getsource can't get source code if provided function isn't from a file","articleBody":"BPO | [24491](https://bugs.python.org/issue24491)\n--- | :---\nNosy | @ned-deily\nSuperseder | \u003cli\u003ebpo-12920: inspect.getsource only works for objects loaded from files, not interactive session\u003c/li\u003e\n\n\u003csup\u003e*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShow more details\u003c/summary\u003e\u003cp\u003e\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2015-06-24.04:04:41.564\u003e\ncreated_at = \u003cDate 2015-06-23.16:46:56.407\u003e\nlabels = ['type-bug']\ntitle = \"inspect.getsource can't get source code if provided function isn't from a file\"\nupdated_at = \u003cDate 2015-06-24.04:04:41.562\u003e\nuser = 'https://bugs.python.org/zorceta'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2015-06-24.04:04:41.562\u003e\nactor = 'ned.deily'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2015-06-24.04:04:41.564\u003e\ncloser = 'ned.deily'\ncomponents = []\ncreation = \u003cDate 2015-06-23.16:46:56.407\u003e\ncreator = 'zorceta'\ndependencies = []\nfiles = []\nhgrepos = []\nissue_num = 24491\nkeywords = []\nmessage_count = 2.0\nmessages = ['245694', '245715']\nnosy_count = 2.0\nnosy_names = ['ned.deily', 'zorceta']\npr_nums = []\npriority = 'normal'\nresolution = 'duplicate'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = '12920'\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue24491'\nversions = ['Python 3.4']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/zorceta","@type":"Person","name":"zorceta"},"datePublished":"2015-06-23T16:46:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/68679/cpython/issues/68679"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:221f48f6-4847-4ad8-81b3-3b65f5161ac5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 819A:1B00D1:ADBDDA:E4F904:6A518D0B |
| html-safe-nonce | ebb4f6445c7fb9ee92bfb0e9ac45dc66354bd43d5fab5ba096a799281eb5c072 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTlBOjFCMDBEMTpBREJEREE6RTRGOTA0OjZBNTE4RDBCIiwidmlzaXRvcl9pZCI6IjcyMjQ5MzI1ODYyNjI0NjU4MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 920fbddf836648a50e68f24bf6897ddd401df656f31d95256800b0bc4473904e |
| hovercard-subject-tag | issue:1198937524 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/68679/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c7b340879a91e59b0719395eeadfc13af35ac649a298c4897388e3309eb4598/python/cpython/issues/68679 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c7b340879a91e59b0719395eeadfc13af35ac649a298c4897388e3309eb4598/python/cpython/issues/68679 |
| og:image:alt | BPO 24491 Nosy @ned-deily Superseder bpo-12920: inspect.getsource only works for objects loaded from files, not interactive session Note: these values reflect the state of the issue at the time it ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zorceta |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width