Mailing List Archive

[issue1025] tracebacks from list comps (probably other comps) don't show full stack
New submission from Neal Norwitz:

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 byte

----------
components: Interpreter Core
keywords: py3k
messages: 55303
nosy: nnorwitz
severity: normal
status: open
title: tracebacks from list comps (probably other comps) don't show full stack
versions: Python 3.0

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue1025>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue1025] tracebacks from list comps (probably other comps) don't show full stack [ In reply to ]
New submission from Neal Norwitz:

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 byte

----------
components: Interpreter Core
keywords: py3k
messages: 55303
nosy: nnorwitz
severity: normal
status: open
title: tracebacks from list comps (probably other comps) don't show full stack
versions: Python 3.0

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue1025>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com