コード例 #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)