Monday, April 19, 2010

Do nothing in Python

abc = {}

try:
    abc['ddd']
except KeyError:
    # pass will do nothing
    pass

0 comments: