GeezerVison is showing github.com — `traceback.walk_stack(None)` yields frames from higher in the stack on 3.11 · Issue #99013 · python/cpython
traceback.walk_stack(None) yields frames from higher in the stack on 3.11 #99013
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 conda-forge | (main, Oct 25 2022, 06:18:27) [GCC 10.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> list(traceback.walk_stack(None))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/graingert/anaconda3/envs/dask-distributed-311/lib/python3.11/traceback.py", line 332, in walk_stack
f = sys._getframe().f_back.f_back.f_back.f_back
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'f_back'
>>>
Originally posted by @graingert in #26958 (comment)
Activity
ammaraskar commented on Nov 2, 2022
I believe this is the same as #96092, I don't currently have time to triage this but this should be a relatively simple fix + test for regression
graingert commented on Nov 2, 2022
ContributorAuthor
More actions
Metadata
Metadata
Development
No branches or pull requestsIssue actions