Title: `traceback.walk_stack(None)` yields frames from higher in the stack on 3.11 · Issue #99013 · python/cpython · GitHub
Open Graph Title: `traceback.walk_stack(None)` yields frames from higher in the stack on 3.11 · Issue #99013 · python/cpython
X Title: `traceback.walk_stack(None)` yields frames from higher in the stack on 3.11 · Issue #99013 · python/cpython
Description: eg: Python 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import traceback >>> list(traceback.walk_stack(None)) [] >>> Python 3.11.0 | packaged by con...
Open Graph Description: eg: Python 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import traceback >>> list(traceback.walk_stack(None)...
X Description: eg: Python 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> imp...
Opengraph URL: https://github.com/python/cpython/issues/99013
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`traceback.walk_stack(None)` yields frames from higher in the stack on 3.11","articleBody":"eg:\r\n\r\n```\r\nPython 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e import traceback\r\n\u003e\u003e\u003e list(traceback.walk_stack(None))\r\n[]\r\n\u003e\u003e\u003e \r\n```\r\n\r\n```\r\nPython 3.11.0 | packaged by conda-forge | (main, Oct 25 2022, 06:18:27) [GCC 10.4.0] on linux\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\u003e\u003e\u003e list(traceback.walk_stack(None))\r\nTraceback (most recent call last):\r\n File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/home/graingert/anaconda3/envs/dask-distributed-311/lib/python3.11/traceback.py\", line 332, in walk_stack\r\n f = sys._getframe().f_back.f_back.f_back.f_back\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nAttributeError: 'NoneType' object has no attribute 'f_back'\r\n\u003e\u003e\u003e \r\n```\r\n\r\n_Originally posted by @graingert in https://github.com/python/cpython/pull/26958#discussion_r1012036670_\r\n ","author":{"url":"https://github.com/graingert","@type":"Person","name":"graingert"},"datePublished":"2022-11-02T16:40:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/99013/cpython/issues/99013"}
| 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:27e3ab3c-b450-a222-731f-c18e30fba8fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D75A:378C0F:2205C63:2EB676C:696AC3AE |
| html-safe-nonce | 0e76735a3442b9d8e28e966f758e060592eeb75d2a8c077e71e509f8c7af17a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzVBOjM3OEMwRjoyMjA1QzYzOjJFQjY3NkM6Njk2QUMzQUUiLCJ2aXNpdG9yX2lkIjoiNTQwNDcyNzg3NzE1NDAzMDUxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f40b0e296dc872324f0dd8ad75a54c940dc516ba7e637ddd4cb5df687cd3a84b |
| hovercard-subject-tag | issue:1433461655 |
| 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/99013/issue_layout |
| twitter:image | https://opengraph.githubassets.com/097a532a4718ceea0c1aab45da02632a54901013a62a08765adfe5d90174e683/python/cpython/issues/99013 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/097a532a4718ceea0c1aab45da02632a54901013a62a08765adfe5d90174e683/python/cpython/issues/99013 |
| og:image:alt | eg: Python 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import traceback >>> list(traceback.walk_stack(None)... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | graingert |
| hostname | github.com |
| expected-hostname | github.com |
| None | 986b6a1d774985095564e64d6963d11f094da3d0e2bfda2ab1a27d63662eb033 |
| 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 | 89ad2112b9c4e11df6a0c13c8c1f8eedd36b0977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width