Skip to content
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 from
Closed

Allow override of task names #578

wants to merge 1 commit into from

Conversation

@dansimau
Copy link

@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():
    [...]
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
Copy link
Member

@bitprophet 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
Copy link
Member

@bitprophet 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
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants