News for hackers. Stuff that matters.
Re:Underscore.py / a python port of underscore.js by rmc on Sunday September 09, 2012 @08:18AM (#4495613)
I even don't like using map, pefering comprehension.

    [w.upper() for w in ["foo", "bar"]]
This underscore.py is not pythonic. Don't use it.
Re:Underscore.py / a python port of underscore.js by jmagnusson on Sunday September 09, 2012 @09:36AM (#4495737)
I completely agree with you. I only used map as he pointed out in the examples how "easy" it was to call it dynamically.
Re:Underscore.py / a python port of underscore.js by masklinn on Sunday September 09, 2012 @09:53AM (#4495771)
An other option if you use map is `operator.methodcaller`, which is also slightly closer in semantics to underscore's invoke (function name specified by string, ability to specify argument to apply to the method, duck-typed).