Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue31618

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Change sys.settrace opcode tracing to occur after frame line number update
Type:behaviorStage:resolved
Components:Versions:Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: gwk, ncoghlan, nedbat, njs, serhiy.storchaka
Priority:normalKeywords:patch

Created on2017-09-28 12:40 bygwk, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 3798mergedgwk,2017-09-28 12:40
PR 4045mergedgwk,2017-10-19 07:40
Messages (3)
msg303225 -(view)Author: George King (gwk)*Date: 2017-09-28 12:40
This patch moves the new opcode tracing added in commit 5a85167 to happen after frame->f_lineno is updated. With this patch, when both f_trace_lines and f_trace_opcodes are enabled the trace function will see the same line number for both the 'line' and 'opcode' events.A side effect of this patch is that the order of event emission has been switched; 'line' now happens before 'opcode'. Maintaining the current order would require more elaborate logic.
msg303226 -(view)Author: George King (gwk)*Date: 2017-09-28 12:45
The feature was was implemented inbpo-31344. Seebpo-29400 for my parallel effort, which has been abandoned.
msg304605 -(view)Author: Alyssa Coghlan (ncoghlan)*(Python committer)Date: 2017-10-19 07:44
Thanks for the fix!
History
DateUserActionArgs
2022-04-11 14:58:52adminsetgithub: 75799
2017-10-19 07:44:47ncoghlansetstatus: open -> closed
resolution: fixed
messages: +msg304605

stage: patch review -> resolved
2017-10-19 07:40:42gwksetkeywords: +patch
stage: patch review
pull_requests: +pull_request4017
2017-09-28 12:45:41gwksetmessages: +msg303226
2017-09-28 12:40:03gwkcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp