Should curry be deprecated?
caleb15 opened this issue · 2 comments
caleb15 commented
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
mrocklin commented
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 < ***@***.***> 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
<#504>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACKZTDNNRPWUGLMG7M657DSOQ3P5ANCNFSM4TM7MVTQ>
.
caleb15 commented
Alright, thanks.