scarblac at pino.selwerd.nl (Remco Gerlich) writes: > Bjorn Pettersen <BPettersen at NAREX.com> wrote in comp.lang.python: > > or > > > > def write(x): > > print x > > > > map(lambda x: write(x), ['line one', 'line two']) > > Argh. We need UUOL (Useless Use Of Lambda) awards. Quite. map and list comprehensions are meant for turning lists into other lists, not for making lists of None while generating side- effects. TMTOWTDI, BMOTAS (= but most of them are silly). -- Any opinions expressed are my own and not necessarily those of Roundpoint.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4