In Python, stylistically better way to remove a potentially nonexistent key from a dictionary? Say you have a dictionary some_dict and want to make sure there's no key some_key in it. What's the best way to do this stylistically speaking and why?

Option 1

some_dict.pop(some_key, None)


Option 2

try:
    del some_dict[some_key]
except KeyError:
    pass


Option 3

if some_key in some_dict:
    del some_dict[some_key]


Also feel free to suggest another option.
Option 1 looks perfect to me. It does the job in one line and is easy to read.