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

Add functoolz.reorder_args #546

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

groutr
Copy link
Contributor

@groutr groutr commented Aug 18, 2022

Candidate function to reorder arguments of an existing function.
Allows alternative function signatures that might be more useful to curry. The wrapped function name reflects the argument remapping for easier debugging.

@groutr
Copy link
Contributor Author

groutr commented Aug 18, 2022

Apparently the .replace method on code objects wasn't introduced till Python 3.8. Code objects have readonly attributes though, so I need to figure out a workaround for updating the wrapper function name.

@groutr
Copy link
Contributor Author

groutr commented Aug 7, 2023

@eriknw The test failures I think are caused by the linter. This is ready to look over though.

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

Successfully merging this pull request may close these issues.

1 participant