[Tutor] define vars by iteration

Luke Jordan luke.jordan at gmail.com
Wed Oct 19 17:23:38 CEST 2005


I've got a bunch of pickled class instances with
self.name<http://self.name/>attributes, and I would like to assign the
instances themselves to variables
named whatever is stored in self.name <http://self.name/> using a function.
"Can't assign to literal", right? Is there a way to do this?
 Thanks,
 Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051019/fc80793b/attachment.html


More information about the Tutor mailing list