DEV Community

Discussion on: Why Pylint is both useful and unusable, and how you can actually use it

Collapse
 
joshcheek profile image
Josh Cheek • Edited

Hmm. I played around with it for a while and this is the best solution I could come up with:

printers = map(lambda i: lambda: print(i), [1, 2, 3])
for func in printers:
    func()

(note: I don't know Python)