You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tracebacks from list comps (probably other comps) don't show full stack #45366
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2008-05-13.19:32:15.183>created_at=<Date2007-08-26.03:37:20.185>labels= ['interpreter-core']
title="tracebacks from list comps (probably other comps) don't show full stack"updated_at=<Date2008-05-13.19:32:15.181>user='https://bugs.python.org/nnorwitz'
A traceback that occurs within a list comprehension (and probably all
comprehensions) only shows the stack from the comprehension, not the
entire scope:
Traceback (most recent call last):
File "Lib/test/test_multibytecodec_support.py", line 35, in
test_chunkcoding
for f inself.tstring]):
File "Lib/test/test_multibytecodec_support.py", line 35, in <listcomp>for f inself.tstring]):
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa6 in position 0:
unexpected code byte
Activity
nnorwitz commentedon Aug 26, 2007
A traceback that occurs within a list comprehension (and probably all
comprehensions) only shows the stack from the comprehension, not the
entire scope:
Traceback (most recent call last): File "Lib/test/test_multibytecodec_support.py", line 35, in test_chunkcoding for f in self.tstring]): File "Lib/test/test_multibytecodec_support.py", line 35, in <listcomp> for f in self.tstring]): UnicodeDecodeError: 'utf8' codec can't decode byte 0xa6 in position 0: unexpected code bytebirkenfeld commentedon May 13, 2008
This seems to be fixed in current SVN.