All tasks should have a useful name attribute #127

bitprophet opened this Issue Mar 1, 2014 · 1 comment


None yet

1 participant


Currently Task has two "namey" attributes, .name which is either None or the explicitly-given name (e.g. @task(name='foo')), and __name__ which copies self.body.__name__ (so typically the name of a wrapped function.)

However, most code, and certainly the natural feeling API, is to always look at - which as above is going to be None a lot of the time if not explicitly given.

Switch it to a property that falls back to __name__ when name is not set.


This got handled in cb82a51 and related commits ('fixes' note had a typo, sigh)

@bitprophet bitprophet closed this Mar 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment