示例#1
0
def task(name):
    return mark('task', True)
示例#2
0
文件: object.py 项目: bazsi/codega
def generator(factory=None):
    '''Mark the function as a generator. If factory is set, the
    generator function will be passed to the factory and the result
    is used.'''

    return mark('generator', factory)
示例#3
0
文件: object.py 项目: bazsi/codega
def priority(priority):
    '''Specify priority of the generator'''

    return mark('priority', priority)
示例#4
0
def task(name):
    return mark('task', True)