Skip to content

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

Closed

Description

@nnorwitz
mannequin
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']

Activity

  1. nnorwitz commented on Aug 26, 2007

    nnorwitzmannequin
    MannequinAuthor

    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
  2. birkenfeld commented on May 13, 2008

    @birkenfeld
    Member

    This seems to be fixed in current SVN.

  3. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions