Exemple #1
0
from example.macros.__macros__ import custom_loop

# this is an error: the loop needs a body
custom_loop(5)
Exemple #2
0
def usage_3():
    # usage of a block macro with body
    with custom_loop(10):
        print 'loop continues...'
Exemple #3
0
def usage_3():
    # usage of a block macro with body
    with custom_loop(10):
        print 'loop continues...'