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

CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW in 3.5 #34

Open
serhiy-storchaka opened this issue Apr 10, 2018 · 0 comments
Open

CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW in 3.5 #34

serhiy-storchaka opened this issue Apr 10, 2018 · 0 comments

Comments

@serhiy-storchaka
Copy link

There was a subtle change in order of argument for CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW in CPython 3.5. In earlier versions *args is passed after keyword arguments. In 3.5 it is passed before them. See https://bugs.python.org/issue33216.

In addition you can pass multiple *args and **kwargs in 3.5. They are merged into a single tuple and dict with new opcodes BUILD_LIST_UNPACK and BUILD_MAP_UNPACK_WITH_CALL.

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