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 -- http://mail.python.org/mailman/listinfo/python-list