pylint: What's wrong with the builtin map()

Tuomas tuomas.vesterinen at pp.inet.fi
Sun Oct 22 14:03:24 EDT 2006


#!/usr/bin/python
"""test pydev_0.9.3/../pylint"""
__revision__ = "test_mod 0.1 by TV 06/10/22"

lst = ['aaa', ' bbb', '\tccc\n']
lst = map(lambda x: x.strip(), lst)

result = """
No config file found, using default configuration
************* Module test_mod
W:  6: Used builtin function 'map'
E:  6: Using variable 'x' before assigment
...
"""



More information about the Python-list mailing list