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

[3.10] gh-101400: Fix incorrect lineno in exception message on contin…#101448

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
corona10 merged 1 commit intopython:3.10fromcorona10:backport-e867c1b-3.10
Jan 31, 2023

Conversation

@corona10
Copy link
Member

@corona10corona10 commentedJan 31, 2023
edited by bedevere-bot
Loading

…ue/break which are not in a loop (GH-101413).

(cherry picked from commite867c1b)

Co-authored-by: Dong-hee Nadonghee.na@python.org

…continue/break which are not in a loop (pythonGH-101413).(cherry picked from commite867c1b)Co-authored-by: Dong-hee Na <donghee.na@python.org>
@corona10
Copy link
MemberAuthor

corona10 commentedJan 31, 2023
edited
Loading

cpython/Python/compile.c

Lines 1841 to 1846 in17b038c

ADDOP(c,POP_TOP);
/* The exit block should appear to execute after the
* statement causing the unwinding, so make the unwinding
* instruction artificial */
c->u->u_lineno=-1;
return1;

@iritkatriel

For 3.10, it only modifies the u_lineno, so just restoring the u_lineno will be enough WDYT?

iritkatriel reacted with thumbs up emoji

@corona10corona10 merged commit740050a intopython:3.10Jan 31, 2023
@corona10corona10 deleted the backport-e867c1b-3.10 branchJanuary 31, 2023 14:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@iritkatrieliritkatrieliritkatriel approved these changes

@markshannonmarkshannonAwaiting requested review from markshannonmarkshannon is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@corona10@iritkatriel@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp