summaryrefslogtreecommitdiff
path: root/tests/functional/n/nested_func_defined_in_loop.py
blob: af34790748e41eb51f4e3f8a97299481a46a60b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
# pylint: disable=W0640
"""Check a nested function defined in a loop."""

def example(args):
    """The check"""
    for i in args:
        def nested():
            print(i)
        nested()
    for i in args:
        print(i)