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: RERAISE "# Decompile 'WITH_EXCEPT_START' is not implemented yet. #317

Closed
opticpp opened this issue Feb 7, 2023 · 12 comments

Comments

@opticpp
Copy link

opticpp commented Feb 7, 2023

image
does anybody know how to fix that?

@TheHellTower
Copy link
Contributor

image does anybody know how to fix that?

Hello, could you send a sample ? I seen in 3.9 and 3.10 it's the same and change a bit in 3.11 so if you could send a not compiled script it would be helpful.

@Remi-Avec-Un-I
Copy link

import dis

def foo():
    try:
        with open('file.txt') as f:
            print(f.read())
    except Exception as e:
        print(f"Error: {e}")

dis.dis(foo)
``` For python 3.11, the result is:

...
>> 128 PUSH_EXC_INFO
130 WITH_EXCEPT_START
132 POP_JUMP_FORWARD_IF_TRUE 4 (to 142)
...

@Faddi1

This comment was marked as off-topic.

@Faddi1

This comment was marked as off-topic.

@TheHellTower
Copy link
Contributor

import dis

def foo():
    try:
        with open('file.txt') as f:
            print(f.read())
    except Exception as e:
        print(f"Error: {e}")

dis.dis(foo)
``` For python 3.11, the result is:

... >> 128 PUSH_EXC_INFO 130 WITH_EXCEPT_START 132 POP_JUMP_FORWARD_IF_TRUE 4 (to 142) ...

I verified from 3.8 to 3.11 and:

So when I will have time I will first work for 3.11 then 3.10-3.8.

@Faddi1

This comment was marked as off-topic.

@TheHellTower

This comment was marked as off-topic.

@Faddi1

This comment was marked as off-topic.

@TheHellTower

This comment was marked as off-topic.

@tjengbudi
Copy link

import dis

def foo():
    try:
        with open('file.txt') as f:
            print(f.read())
    except Exception as e:
        print(f"Error: {e}")

dis.dis(foo)
``` For python 3.11, the result is:

... >> 128 PUSH_EXC_INFO 130 WITH_EXCEPT_START 132 POP_JUMP_FORWARD_IF_TRUE 4 (to 142) ...

I verified from 3.8 to 3.11 and:

So when I will have time I will first work for 3.11 then 3.10-3.8.

Do you have fork repository for this? May i follow your progress?

@TheHellTower
Copy link
Contributor

Hey guys,

giving a small "update" on the situation.

I didn't continue on pycdc because I moved in April to another country(I'm from France originally) and I don't really have much time for this project right now, I contributed to pycdc and I might do it again when I get a place and things like this but since I don't fully understand pycdc code I can't just throw my time on it.

In a few months I should have settled all that and should be able to continue contributing to it, sorry for the inconvenience !

Best Regards,
TheHellTower.

@zrax
Copy link
Owner

zrax commented Feb 21, 2024

Duplicate #450

@zrax zrax closed this as completed Feb 21, 2024
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

6 participants