In Python what is the most efficient way to do this:
my_var = some_var[\'my_key\'] | None
ie. assign some_var[\'my_key\'] to
some_var[\'my_key\']
try: my_var = some_var except: my_var = None
But honestly this probably doesn't get to the heart of what you're trying to do... We need more context to more fully answer.