News for hackers. Stuff that matters.
Re:The evil unit test. by prez on Monday January 30, 2012 @10:40AM (#3529152)
You shall use a foreach every time you need to perform a loop.

Works pretty well in Python.

Though it doesn't invalidate the point the author tries to make.

Re:The evil unit test. by cbs on Monday January 30, 2012 @12:51PM (#3529771)
Works pretty well in Python

But xrange() in python is just a roundabout way to get back to having a regular for loop.

    for x in xrange(0,100)
    for(x=0, x<100, x++)
Re:The evil unit test. by recursive on Monday January 30, 2012 @11:27AM (#3529358)
So you think while loops are unnecessary in python?