4 ms·
Very good question! The reason is that I found that it better matches what you use them for in Celery, since they are used e.g. to forward results from the pre
by asksol 14y ago
Very good question!
The reason is that I found that it better matches what you use them for in Celery,
since they are used e.g. to forward results from the previous tasks to a callback.
Often you have a signatures like: def blur_image(image, amount=1),
where the partial is used like render_image.s(file) | blur_image.s()
functools.partial is usually used the other way; it's most common
to create functools.partials where the first argument is satisfied.