Пример #1
0
from example.macros.__macros__ import custom_loop

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