Title: IDLE - Remove use of deprecated sys.last_xyzs in stackviewer · Issue #102832 · python/cpython · GitHub
Open Graph Title: IDLE - Remove use of deprecated sys.last_xyzs in stackviewer · Issue #102832 · python/cpython
X Title: IDLE - Remove use of deprecated sys.last_xyzs in stackviewer · Issue #102832 · python/cpython
Description: #102778 deprecated sys.last_type/value/traceback in favor of sys.last_exc, added in 3.12. We cannot access system system-set sys.last_exc in 3.10 and 3.11, but we can set it from sys.last_value or sys.exec_info()[1] and nearly never set ...
Open Graph Description: #102778 deprecated sys.last_type/value/traceback in favor of sys.last_exc, added in 3.12. We cannot access system system-set sys.last_exc in 3.10 and 3.11, but we can set it from sys.last_value or ...
X Description: #102778 deprecated sys.last_type/value/traceback in favor of sys.last_exc, added in 3.12. We cannot access system system-set sys.last_exc in 3.10 and 3.11, but we can set it from sys.last_value or ...
Opengraph URL: https://github.com/python/cpython/issues/102832
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IDLE - Remove use of deprecated sys.last_xyzs in stackviewer","articleBody":"#102778 deprecated sys.last_type/value/traceback in favor of sys.last_exc, added in 3.12. We cannot access system system-set sys.last_exc in 3.10 and 3.11, but we can set it from sys.last_value or sys.exec_info()[1] and nearly never set or otherwise access the deprecated values. The except is `sys.last_type, sys.last_value, sys.last_traceback = excinfo` in run.print_exception, which should remain as long as the REPL does the same (add comment). Any `sys.last_exc = sys.last_value` statements can be deleted in June 2024. There is a [draft issue](https://github.com/orgs/python/projects/31/views/1?pane=issue\u0026itemId=23303905) for this.\n\nThe files to be patched are run (where it handles exceptions or stackviewer), pyshell (where it starts stackviewer), stackviewer, and test_stackviewer. [This diff](https://github.com/python/cpython/pull/102825/files) has the relevant locations.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-103339\n* gh-105526\n* gh-105527\n* gh-105528\n* gh-105534\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/terryjreedy","@type":"Person","name":"terryjreedy"},"datePublished":"2023-03-19T18:00:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/102832/cpython/issues/102832"}
| 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:770f000c-4b2d-b455-4754-85a8dc71193d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DCA0:207A9B:3E38DB:55A350:696A0B2A |
| html-safe-nonce | a84b0e805c355f1eb337813fea65cd8cc325d7cc795c4653c448e577944107af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0EwOjIwN0E5QjozRTM4REI6NTVBMzUwOjY5NkEwQjJBIiwidmlzaXRvcl9pZCI6Ijg1MTE1NTQ1NTg3NjI4MTQyNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e649547f3fc3102e8479c03924ba2fde41b0bdc42ba5dbaeb47da33107363279 |
| hovercard-subject-tag | issue:1631052478 |
| 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/102832/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9492de4f53753f3aa34dbf8a2b5601586df556a61cdf996e2508c49a0a9a4127/python/cpython/issues/102832 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9492de4f53753f3aa34dbf8a2b5601586df556a61cdf996e2508c49a0a9a4127/python/cpython/issues/102832 |
| og:image:alt | #102778 deprecated sys.last_type/value/traceback in favor of sys.last_exc, added in 3.12. We cannot access system system-set sys.last_exc in 3.10 and 3.11, but we can set it from sys.last_value or ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | terryjreedy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 699227a00bbb7fe1eec276d2ae1c3a93068bc5ba483bd9dc4b2a27a8f4f2f595 |
| 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 | 7266b2d935baa1c6474b16dd9feaa5ca30607261 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width