News for hackers. Stuff that matters.
Re:Python idiom for taking the single item from a list by swolchok on Monday September 27, 2010 @05:18PM (#1733468)
If he's defending against None, he should

    assert l is not None and len(l) == 1

There are no comments on this comment yet.