News for hackers. Stuff that matters.
Re:Python Idioms [pdf] by eliteraspberrie on Thursday January 30, 2014 @12:20PM (#7151852)
Also note the second argument to the get method specifies the default value to return in case of a KeyError:

    something = d.get('x', default)

There are no comments on this comment yet.