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

Unsupported opcode: MAP_ADD #477

Open
hxxt9049 opened this issue Apr 10, 2024 · 3 comments
Open

Unsupported opcode: MAP_ADD #477

hxxt9049 opened this issue Apr 10, 2024 · 3 comments

Comments

@hxxt9049
Copy link

hxxt9049 commented Apr 10, 2024

python 3.9
Unsupported opcode: MAP_ADD
Unsupported Node type: 12

@greenozon
Copy link
Contributor

This is interesting... MAP_ADD opcode is present in the code base

maybe you hit the yellow marked case...

image

@ThomasFaivre
Copy link

Reproduced on Ubuntu 22.04 (python 3.10), with latest pycdc version:

$ cat t.py && python3 -m compileall t.py && pycdc __pycache__/t.cpython-310.pyc
d = {
    1: 1,
    2: 1,
    3: 1,
    4: 1,
    5: 1,
    6: 1,
    7: 1,
    8: 1,
    9: 1,
    10: 1,
    11: 1,
    12: 1,
    13: 1,
    14: 1,
    15: 1,
    16: 1,
}
# Source Generated with Decompyle++
# File: t.cpython-310.pyc (Python 3.10)

Unsupported opcode: MAP_ADD
# WARNING: Decompyle incomplete

The issue does not happen with less than 16 elements in the dictionary so I'm guessing some form of optimization for small dict is in play.

@ThomasFaivre
Copy link

Might actually be a different issue. OP is mentioning python 3.9 and I can't reproduce on it.

Moreover, my issue look a lot like numba/numba#7894 which is python 3.10 related.

Should I open another issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants