These are slower than using a custom dictionary, and also more
dangerous. The locals approach makes it possible to call
any function in the local scope, while eval makes it
possible to execute arbitrary code. Only use these if you know
exactly what you’re doing.