Created
April 5, 2013 14:44
-
-
Save robcowie/5319823 to your computer and use it in GitHub Desktop.
Python version of php's best feature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def extract(d): | |
import inspect | |
inspect.getouterframes(inspect.currentframe())[1][0].f_locals.update(d) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment