Title: inspect.getsource only works for objects loaded from files, not interactive session · Issue #57129 · python/cpython · GitHub
Open Graph Title: inspect.getsource only works for objects loaded from files, not interactive session · Issue #57129 · python/cpython
X Title: inspect.getsource only works for objects loaded from files, not interactive session · Issue #57129 · python/cpython
Description: BPO 12920 Nosy @terryjreedy, @ned-deily, @merwok, @bitdancer, @PCManticore, @Naddiseo, @BlckKnght, @native-api, @vmsp, @Ark-kun Note: these values reflect the state of the issue at the time it was migrated and might not reflect the curre...
Open Graph Description: BPO 12920 Nosy @terryjreedy, @ned-deily, @merwok, @bitdancer, @PCManticore, @Naddiseo, @BlckKnght, @native-api, @vmsp, @Ark-kun Note: these values reflect the state of the issue at the time it was ...
X Description: BPO 12920 Nosy @terryjreedy, @ned-deily, @merwok, @bitdancer, @PCManticore, @Naddiseo, @BlckKnght, @native-api, @vmsp, @Ark-kun Note: these values reflect the state of the issue at the time it was ...
Opengraph URL: https://github.com/python/cpython/issues/57129
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"inspect.getsource only works for objects loaded from files, not interactive session","articleBody":"BPO | [12920](https://bugs.python.org/issue12920)\n--- | :---\nNosy | @terryjreedy, @ned-deily, @merwok, @bitdancer, @PCManticore, @Naddiseo, @BlckKnght, @native-api, @vmsp, @Ark-kun\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 = None\ncreated_at = \u003cDate 2011-09-06.18:37:57.848\u003e\nlabels = ['interpreter-core', '3.8', 'expert-IDLE', 'type-bug', '3.7']\ntitle = 'inspect.getsource only works for objects loaded from files, not interactive session'\nupdated_at = \u003cDate 2020-11-30.02:13:01.074\u003e\nuser = 'https://github.com/PCManticore'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2020-11-30.02:13:01.074\u003e\nactor = 'Ark-kun'\nassignee = 'docs@python'\nclosed = False\nclosed_date = None\ncloser = None\ncomponents = ['IDLE', 'Interpreter Core']\ncreation = \u003cDate 2011-09-06.18:37:57.848\u003e\ncreator = 'Claudiu.Popa'\ndependencies = []\nfiles = []\nhgrepos = []\nissue_num = 12920\nkeywords = []\nmessage_count = 15.0\nmessages = ['143645', '143773', '143790', '143831', '185179', '245714', '245721', '245723', '252846', '265815', '297768', '297797', '328836', '331659', '382107']\nnosy_count = 12.0\nnosy_names = ['terry.reedy', 'ned.deily', 'eric.araujo', 'r.david.murray', 'Claudiu.Popa', 'Naddiseo', 'Steven.Barker', 'Ivan.Pozdeev', 'zorceta', 'nikitakit', 'vmsp', 'Ark-kun']\npr_nums = []\npriority = 'normal'\nresolution = None\nstage = 'needs patch'\nstatus = 'open'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue12920'\nversions = ['Python 3.7', 'Python 3.8']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-111197\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/PCManticore","@type":"Person","name":"PCManticore"},"datePublished":"2011-09-06T18:37:58.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/57129/cpython/issues/57129"}
| 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:3437ab79-e44c-3586-c8a4-323bb1f1a7c0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7FC:18C669:24F49C:337836:6A511496 |
| html-safe-nonce | c9a1b5cae19b9a388cbae581388aee7ddf3560ccd3a165af51be1dbf88032397 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0ZDOjE4QzY2OToyNEY0OUM6MzM3ODM2OjZBNTExNDk2IiwidmlzaXRvcl9pZCI6IjcxNTc1ODcyMzI3NzMxODI2MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 333ac831bd0e6ffc635320a9d66463a0ef02115d88b80a630cdca24577b89929 |
| hovercard-subject-tag | issue:1198872671 |
| 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/57129/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7bb1da28d758745ab04765daf1679aa68d543876c27a32daaf1bd0ec0266e86/python/cpython/issues/57129 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7bb1da28d758745ab04765daf1679aa68d543876c27a32daaf1bd0ec0266e86/python/cpython/issues/57129 |
| og:image:alt | BPO 12920 Nosy @terryjreedy, @ned-deily, @merwok, @bitdancer, @PCManticore, @Naddiseo, @BlckKnght, @native-api, @vmsp, @Ark-kun Note: these values reflect the state of the issue at the time it was ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PCManticore |
| hostname | github.com |
| expected-hostname | github.com |
| None | b076e100febaa00374cd89239f915d00dd3187f7c68b12bc2b7688181305344d |
| 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 | f9137f6d981cbbfd780af369f80ce890b2d0d2d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width