hello-abson

Results 8 comments of hello-abson

# Source Generated with Decompyle++ # File: test.pyc (Python 3.11) def a(): Unsupported opcode: SWAP pass # WARNING: Decompyle incomplete SWAP demo

[test.zip](https://github.com/zrax/pycdc/files/13800087/test.zip) def a(): for dir in "": path = dir return path pass dis.dis(a) 26 0 RESUME 0 27 2 LOAD_CONST 1 ('') 4 GET_ITER 6 FOR_ITER 7 (to 22)...

I solved it myself and modified the source code to support the directive

Let swap press the stack, stack.push(nullptr); I've fixed about 10 py3.11 commands myself so far. Is currently solving the try except instruction, card for a long time, do not understand...

void swap(int index) { if (m_ptr > -1) { PycRef node = top(); if (node) { m_stack[m_ptr] = m_stack[index - 1]; m_stack[index - 1] = node; } } } I...

I'm still working on the parsing of try, help me try: pass except: raise try: pass except: print("123")

https://github.com/zrax/pycdc/issues/409 I saw in other posts that you have solved the problem, can you tell me how to solve it? Share the code def a(): try: print("123") finally: print("finally")