Class problem: loosing my mind
stuffduff
stuffduff at cox.net
Sat Apr 26 22:21:32 EDT 2003
I'm 'doing the class pickle thing.'
I understand that both the module doing the pickling and the module
doing the unpickling need to reference the same class definition.
So I go and make a directory under site-packages named gV and in the
directory i add a file gV.py class gO and a completely empty
__init__.py
Now I have an importable module for the class, as much as I
understand.
So I fire up python, import sys and print sys.path, and the last path
is pointing to the correct site-packages.
At the python prompt I enter import gV, no error.
Next I try and create an instance:
x=gV.gO()
and I get AttributeError: 'gV' module has no attribute 'gO'
What am I missing here?
Sean
home: stuffduff at cox.net
work: swduffy at unmc.edu
More information about the Python-list
mailing list