Clueless with cPickle
Roel Schroeven
rschroev_nospam_ml at fastmail.fm
Sun May 8 17:40:14 EDT 2005
les wrote:
> Traceback (most recent call last):
> File "/home/les/workspace/Module 2/questor.py", line 18, in ?
> f = file(questorlistfile)
> NameError: name 'questorlistfile' is not defined
>
> I thought that I had defined questorlistfile on the 4th line below
>
> # define some constants for future use
>
> import cPickle as p
> #import pickle as p
>
> questorfile = 'questor.data' # the name of the file where we will store the object
You defined questorfile, not questorlistfile.
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
More information about the Python-list
mailing list