New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow override of task names #578

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@dansimau

dansimau commented Mar 8, 2012

This allows overriding the task name using the name="" argument in @task, which in turn allows the use of Python-reserved words as task names without the need to create an alias eg.:

@task(name="import")
    def _import():
    [...]
Allow override of task name using the name="" argument in @task
This enables the use of Python-reserved words as task names, without the need to create an alias eg.:
    @task(name="import")
        def _import():
        [...]
@bitprophet

This comment has been minimized.

Member

bitprophet commented Oct 19, 2012

This is getting the "maintainer needs this now" priority bump!

To do:

  • Move the name kwarg to the end; having it at the start breaks backwards compat for anybody using positional args.
  • Tests
  • Docs
  • Changelog

/me does this now.

bitprophet added a commit that referenced this pull request Oct 19, 2012

bitprophet added a commit that referenced this pull request Oct 19, 2012

@bitprophet

This comment has been minimized.

Member

bitprophet commented Oct 19, 2012

All set.

@bitprophet bitprophet closed this Oct 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment