[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tracebacks from list comps (probably other comps) don't show full stack #45366

Closed
nnorwitz mannequin opened this issue Aug 26, 2007 · 2 comments
Closed

tracebacks from list comps (probably other comps) don't show full stack #45366

nnorwitz mannequin opened this issue Aug 26, 2007 · 2 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@nnorwitz
Copy link
Mannequin
nnorwitz mannequin commented Aug 26, 2007
BPO 1025
Nosy @birkenfeld

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 = None
closed_at = <Date 2008-05-13.19:32:15.183>
created_at = <Date 2007-08-26.03:37:20.185>
labels = ['interpreter-core']
title = "tracebacks from list comps (probably other comps)  don't show full stack"
updated_at = <Date 2008-05-13.19:32:15.181>
user = 'https://bugs.python.org/nnorwitz'

bugs.python.org fields:

activity = <Date 2008-05-13.19:32:15.181>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2008-05-13.19:32:15.183>
closer = 'georg.brandl'
components = ['Interpreter Core']
creation = <Date 2007-08-26.03:37:20.185>
creator = 'nnorwitz'
dependencies = []
files = []
hgrepos = []
issue_num = 1025
keywords = []
message_count = 2.0
messages = ['55303', '66799']
nosy_count = 2.0
nosy_names = ['nnorwitz', 'georg.brandl']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1025'
versions = ['Python 3.0']

@nnorwitz
Copy link
Mannequin Author
nnorwitz mannequin commented 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 byte

@nnorwitz nnorwitz mannequin added the interpreter-core (Objects, Python, Grammar, and Parser dirs) label Aug 26, 2007
@birkenfeld
Copy link
Member

This seems to be fixed in current SVN.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

No branches or pull requests

1 participant