Is it possible to do some thing like this with exec: dcon0 = {'long':120.00, 'lat': 39.00, 'year': 2009} Can I use exec or eval simply on this to get: long = 120.00 lat = 39.00 year = 2009 That is, initialize each of these three variables. --
Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time) Q: What do you do when your resistors get to hot? A: Open the switch and coulomb they off. -- Anon. (fortunately!) Web Page: <www.speckledwithstars.net/> |
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor