Author ntroutman
Recipients ntroutman
Date 2009-03-18.17:08:10
SpamBayes Score 1.1676e-05
Marked as misclassified No
Message-id <1237396093.07.0.466180023327.issue5509@psf.upfronthosting.co.za>
In-reply-to
Content
If I define a class Foo in module A and in module A pickle out a list of
Foo objects to 'foo.pkl', then in module B attempt to unpickle 'foo.pkl'
I recieve the error "AttributeError: 'module' object has no attribute 'Foo'"

Attached are:
Foo.py which defines the class Foo and pickles out a list of objects

LoadFoo.py attempts to load the list of objects pickled by Foo

I'm running Vista with "Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08)
[MSC v.1310 32 bit (Intel)] on win32"
History
Date User Action Args
2009-03-18 17:08:13ntroutmansetrecipients: + ntroutman
2009-03-18 17:08:13ntroutmansetmessageid: <1237396093.07.0.466180023327.issue5509@psf.upfronthosting.co.za>
2009-03-18 17:08:11ntroutmanlinkissue5509 messages
2009-03-18 17:08:10ntroutmancreate