Support for using partial with positional only argument functions

That is indeed what I am doing right now :blush:, I guess it is also that I generally prefer partials over lambdas for this kind of case as I have seen people fall into cases like:

from functools import partial
import datetime
format_ = "%d %B, %Y"
p = lambda datestr: datetime.datetime.strptime(datestr, format_)
format_ = None
print(p("3 June, 2019"))   # Fails

Also, 100% subjective, it’s easier for me to read partials, as I know it is just the same functionality just binding arguments.
If lambdas were a perfect solution for binding arguments there would not be partials at all, right?

2 Likes