News for hackers. Stuff that matters.
Re:Homogenization of scientific computing – Python is eating... by yohanatan on Thursday January 09, 2014 @05:17PM (#7033675)
Oops, you're right.

    words = open("test.txt").read().split()
    [(k, len(list(g))) for k, g in groupby(words, lambda x: x)]
Re:Homogenization of scientific computing – Python is eating... by leephillips on Thursday January 09, 2014 @05:58PM (#7033873)
Doesn't that require an "import itertools"?
Re:Homogenization of scientific computing – Python is eating... by yohanatan on Wednesday January 15, 2014 @02:22PM (#7065506)
Yup. Sorry.