Title: inspect.getsource() examines incorrect target · Issue #84497 · python/cpython · GitHub
Open Graph Title: inspect.getsource() examines incorrect target · Issue #84497 · python/cpython
X Title: inspect.getsource() examines incorrect target · Issue #84497 · python/cpython
Description: BPO 40317 Nosy @ammaraskar, @tirkarthi Superseder bpo-35113: inspect.getsource returns incorrect source for classes when class definition is part of multiline strings Files demo.py: Example Note: these values reflect the state of the iss...
Open Graph Description: BPO 40317 Nosy @ammaraskar, @tirkarthi Superseder bpo-35113: inspect.getsource returns incorrect source for classes when class definition is part of multiline strings Files demo.py: Example Note: t...
X Description: BPO 40317 Nosy @ammaraskar, @tirkarthi Superseder bpo-35113: inspect.getsource returns incorrect source for classes when class definition is part of multiline strings Files demo.py: Example Note: t...
Opengraph URL: https://github.com/python/cpython/issues/84497
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"inspect.getsource() examines incorrect target","articleBody":"BPO | [40317](https://bugs.python.org/issue40317)\n--- | :---\nNosy | @ammaraskar, @tirkarthi\nSuperseder | \u003cli\u003ebpo-35113: inspect.getsource returns incorrect source for classes when class definition is part of multiline strings\u003c/li\u003e\nFiles | \u003cli\u003e[demo.py](https://bugs.python.org/file49072/demo.py \"Uploaded as text/plain at 2020-04-18.11:50:37 by Grzegorz Krasoń\"): Example\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 2020-04-29.03:37:05.722\u003e\ncreated_at = \u003cDate 2020-04-18.11:50:37.511\u003e\nlabels = ['type-bug', 'library', '3.9']\ntitle = 'inspect.getsource() examines incorrect target'\nupdated_at = \u003cDate 2020-04-29.03:37:05.720\u003e\nuser = 'https://bugs.python.org/GrzegorzKraso'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2020-04-29.03:37:05.720\u003e\nactor = 'xtreak'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2020-04-29.03:37:05.722\u003e\ncloser = 'xtreak'\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2020-04-18.11:50:37.511\u003e\ncreator = 'Grzegorz Kraso\\xc5\\x84'\ndependencies = []\nfiles = ['49072']\nhgrepos = []\nissue_num = 40317\nkeywords = []\nmessage_count = 5.0\nmessages = ['366701', '366719', '366728', '367579', '367619']\nnosy_count = 3.0\nnosy_names = ['Grzegorz Kraso\\xc5\\x84', 'ammar2', 'xtreak']\npr_nums = []\npriority = 'normal'\nresolution = 'duplicate'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = '35113'\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue40317'\nversions = ['Python 3.9']\n```\n\n\u003c/p\u003e\u003c/details\u003e\n","author":{"url":"https://github.com/GrzegorzKraso","@type":"Person","name":"GrzegorzKraso"},"datePublished":"2020-04-18T11:50:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/84497/cpython/issues/84497"}
| 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:45e80f5e-a9c8-304b-4742-5c020cf290dc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B0C:19C73D:F29278:14740E4:6A532CCF |
| html-safe-nonce | b7aeec63eddb3489b7d35cfa439e5a526592060a56658cd1b00c65c261c4431b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjBDOjE5QzczRDpGMjkyNzg6MTQ3NDBFNDo2QTUzMkNDRiIsInZpc2l0b3JfaWQiOiIyMDI1MTY2OTE1MzgzNzk4OTkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a8d46590f3206317d80f380c63e19fe016e29c00ba43057fce6446dd2ed613f1 |
| hovercard-subject-tag | issue:1199034583 |
| 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/84497/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9e7aa0d469050801d7350d9894f20a4a72134dcba51ff9aae2e56167fc07c13e/python/cpython/issues/84497 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9e7aa0d469050801d7350d9894f20a4a72134dcba51ff9aae2e56167fc07c13e/python/cpython/issues/84497 |
| og:image:alt | BPO 40317 Nosy @ammaraskar, @tirkarthi Superseder bpo-35113: inspect.getsource returns incorrect source for classes when class definition is part of multiline strings Files demo.py: Example Note: t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GrzegorzKraso |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width