Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Negative line number in stacktrace exception #101400

Closed
Assignees
iritkatriel
Labels
type-bugAn unexpected behavior, bug, or error
@Kartatz

Description

@Kartatz

The following code snippet generates a stacktrace exception pointing to a invalid line number (-1):

withobject()asobj:break

Example:

$echo'with object() as obj:\n\tbreak'> main.py$ python main.py  File"/home/kartz/main.py", line -1SyntaxError:'break' outside loop

This is reproducible with Python 3.10, 3.11 and latestmaster. I could not reproduce this on Python versions older than <3.10.

Linked PRs

Metadata

Metadata

Assignees

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp