summaryrefslogtreecommitdiff
path: root/test/input/func_noerror_defined_and_used_on_same_line.py
blob: 17e4557a79b3cfdbd921afdc38d3715c0b8d02bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pylint: disable-msg=C0111,C0321
"""pylint complains about 'index' being used before definition"""

__revision__ = None

print [index
       for index in range(10)]


FILTER_FUNC = lambda x: not x

def func(xxx): return xxx

def func2(xxx): return xxx + func2(1)

import sys; print sys.exc_info( )

for i in range(10): print i

j = 4; LAMB = lambda x: x+j

FUNC4 = lambda a, b : a != b
FUNC3 = lambda (a, b) : a != b