Skip to content
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

dis output is missing information for KW_NAMES #99944

Closed
chilaxan opened this issue Dec 2, 2022 · 3 comments · Fixed by #103856
Closed

dis output is missing information for KW_NAMES #99944

chilaxan opened this issue Dec 2, 2022 · 3 comments · Fixed by #103856
Labels
type-bug An unexpected behavior, bug, or error

Comments

@chilaxan
Copy link
Contributor

chilaxan commented Dec 2, 2022

Bug report

dis output is missing the constant value for KW_NAMES

This is due to a hardcoded check that the op is LOAD_CONST before grabbing the value.
This check comes after a check that the opcode is in dis.hasconst, so reasonably it can be removed to allow KW_NAMES and future opcodes that feature constants to work moving forward.

I have drafted a simple pull request #99943 to fix this bug

Linked PRs

@chilaxan chilaxan added the type-bug An unexpected behavior, bug, or error label Dec 2, 2022
@Sarenard
Copy link

It seems that i have the same problem, is this pr still active?

@arhadthedev
Copy link
Member

@Lorisredstone The PR needs tests and there is nobody with free time to dig into the matter and add them.

@iritkatriel
Copy link
Member

Thank you @chilaxan and @jkchandalia.

itamaro pushed a commit to itamaro/cpython that referenced this issue Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants