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

Python 3.1 EXTENDED arg, funcdef and function annotations #101

Open
rocky opened this issue Oct 25, 2016 · 0 comments
Open

Python 3.1 EXTENDED arg, funcdef and function annotations #101

rocky opened this issue Oct 25, 2016 · 0 comments

Comments

@rocky
Copy link

rocky commented Oct 25, 2016

The following program niether disassembles properly nor decompiles properly.

# An example of Python 3.1 funkiness
# Disassembling this gives the "EXTENDED_ARG" op

def open(file, mode = "r", buffering = None,
         encoding = None, errors = None,
         newline = None, closefd = True) -> "IOBase":
    return text

I think this all has to do with Python 3.x function annotations.

(If it is any consolation, the above was just fixed in xdis disassembly and I still have decompilation to fix up.)

@rocky rocky changed the title Python 3.1 EXTENDED arg and funcdef Python 3.1 EXTENDED arg, funcdef and function annotations Oct 28, 2016
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

1 participant