Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: be01485b55
Fetching contributors…

Cannot retrieve contributors at this time

8 lines (7 sloc) 0.239 kb
class EasygoingDictionary(dict):
"""A dictionary that returns None if you try to access a non-existent key.
"""
def __getitem__(self, key):
if not key in self:
return None
return super(EasygoingDictionary, self).__getitem__(key)
Jump to Line
Something went wrong with that request. Please try again.