Closed caleb15 closed 3 years ago
No. Partial isn't a replacement for curry. I recommend looking at the docs for curry and then seeing if partial can do all of those things.
On Fri, Nov 6, 2020 at 10:07 AM Caleb Collins-Parks < notifications@github.com> wrote:
https://docs.djangoproject.com/en/3.1/releases/3.0/ says:
django.utils.functional.curry() - Use functools.partial() or functools.partialmethod. See 5b1c389603a353625ae1603.
Can functools.partial or functools.partialmethod be used as a replacement for curry? If so it seems that curry should be deprecated as functools is part of the stdlib.
https://docs.python.org/3/library/functools.html#functools.partial https://docs.python.org/3/library/functools.html#functools.partialmethod
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pytoolz/toolz/issues/504, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACKZTDNNRPWUGLMG7M657DSOQ3P5ANCNFSM4TM7MVTQ .
Alright, thanks.
https://docs.djangoproject.com/en/3.1/releases/3.0/ says:
Can functools.partial or functools.partialmethod be used as a replacement for curry? If so it seems that curry should be deprecated as functools is part of the stdlib.
https://docs.python.org/3/library/functools.html#functools.partial https://docs.python.org/3/library/functools.html#functools.partialmethod