[Chicago] dict to local vars?

Toby, Brian H. toby at anl.gov
Wed Jan 22 23:05:25 CET 2014

Yes, indeed, the optional args for eval() is exactly what I wanted to know! Four answers to an obscure (IMHO) question in less than 45 minutes -- you folks are incredible. Many thanks.


On Jan 22, 2014, at 2:13 PM, Toby, Brian H. wrote:

Can any Python gurus help me find a cleaner way to attack a problem? I am of the opinion that anything can be done in Python (though not always cleanly or wisely), but so far how to define variables in the local namespace from a dict has so far eluded me.

Brian H. Toby, Ph.D.                            office: 630-252-5488
Senior Physicist/Section Head for Scientific Software
Advanced Photon Source
9700 S. Cass Ave, Bldg. 401/B4192            work cell: 630-327-8426
Argonne National Laboratory
Argonne, IL 60439-4856         e-mail: brian dot toby at anl dot gov
"We will restore science to its rightful place, and wield technology's wonders... We will harness the sun and the winds and the soil to fuel our cars and run our factories...  All this we can do. All this we will do."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20140122/8b1d627b/attachment.html>

More information about the Chicago mailing list