[Tutor] Assign to vars by iteration

Luke Jordan luke.jordan at gmail.com
Mon Oct 17 20:18:39 CEST 2005


I've got a bunch of pickled class instances, and I'm trying to load them as
variables using a function. The class has a self.name
<http://self.name>attribute, and I've got a list of
self.name <http://self.name> for all the instances pickled separately. When
I would like to attach the names of each instance to the corresponding class
instance (using self.name <http://self.name>
 def loadClassInst():
 classInstFile = "filepath"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051017/382de065/attachment.html


More information about the Tutor mailing list