Re:Celery 3.0 has been released
by asksol on Sunday July 08, 2012 @08:46AM
(#4214447)
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.
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.