Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue33334

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:Add support of NOP and EXTENDED_ARG in stack_effect()
Type:enhancementStage:resolved
Components:Library (Lib)Versions:Python 3.8
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: larry, serhiy.storchaka
Priority:normalKeywords:patch

Created on2018-04-22 17:11 byserhiy.storchaka, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 6566mergedserhiy.storchaka,2018-04-22 17:25
Messages (2)
msg315622 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2018-04-22 17:11
Currently dis.stack_effect() doesn't support opcodes NOP and EXTENDED_ARG. NOP is never emitted by the standard compiler (it is temporary added in the peephole optimizer, but later it is removed). EXTENDED_ARG is a special case, it is considered as a part of long instructions.dis.stack_effect() itself is not used in the dis module. It can be used in the third-party code, and the third-party code can produce bytecode with non-standard use of NOP and EXTENDED_ARG. Supporting them in dis.stack_effect() can avoid the need of special casing them in the third-party code.I don't know whether this is a bug fix or a new feature.
msg315758 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2018-04-25 19:04
New changeset57faf348872d1d0af1808c82f535cf220d64b028 by Serhiy Storchaka in branch 'master':bpo-33334: Support NOP and EXTENDED_ARG in dis.stack_effect(). (#6566)https://github.com/python/cpython/commit/57faf348872d1d0af1808c82f535cf220d64b028
History
DateUserActionArgs
2022-04-11 14:58:59adminsetgithub: 77515
2018-04-25 19:06:05serhiy.storchakasetstatus: open -> closed
type: enhancement
resolution: fixed
stage: patch review -> resolved
2018-04-25 19:04:15serhiy.storchakasetmessages: +msg315758
2018-04-22 17:25:11serhiy.storchakasetkeywords: +patch
stage: patch review
pull_requests: +pull_request6262
2018-04-22 17:11:17serhiy.storchakacreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp