-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[SOT][3.12] Support RETURN_CONST opcode in Python 3.12 #61964
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SOT][3.12] Support RETURN_CONST opcode in Python 3.12 #61964
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
以及有几个硬编码为 "RETURN_VALUE" 的情况可能需要适配一下,提取常量 RETURN 到 opcode_info.py,并在使用处调用,可以下一个 PR 尝试做一下~
| self._graph.start_compile(ret_const) | ||
| self._graph.pycode_gen.gen_return() | ||
| self.new_code = self._graph.pycode_gen.gen_pycode() | ||
| return Stop(state="Return") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里可以考虑服用下 RETURN_VALUE 的代码,抽出来一个公共函数~
|
冲突了 😂 |
|
TODO: |
SigureMo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR types
Others
PR changes
Others
Description
python 3.12 支持
RETURN_CONST