how can I use a special keyword as my fabric function name?
问题 How can I make a fabric function with reserved keywords like this? def not(*args): ...... This throws a "invalid syntax" error. Is there any way to override the special keyword and use it as a function name in classic method? I can do this with @task alias but all my other functions follow classic method. http://docs.fabfile.org/en/1.10/usage/tasks.html#task-decorator 回答1: This looks fine to me: fabfile.py from fabric.api import task @task(alias='not') def _not(): print 'not called' @task