News for hackers. Stuff that matters.
Re:Underscore.py / a python port of underscore.js by FuzzyDunlop on Sunday September 09, 2012 @09:05AM (#4495682)

    VERSION = "0.1.2"
    """
    Version of the library
    """
This is a good example of unnecessary commenting.

But I think this port misses the point of Underscore.js, which is to make the same functional features of the language available to all browser implementations, because not all browsers have forEach, or filter, or reduce, etc. In Python, or other languages? The features are already there.

Re:Underscore.py / a python port of underscore.js by serkanyersen on Sunday September 09, 2012 @10:39AM (#4495890)
Haha :) I don't know what I was thinking by putting that comment.

Underscore.py is not trying to fill any gap in Python. It's just a port. Maybe a useful collection of tools. But I agree it's mostly pointless when there are itertools and functools.