K Gaur <[EMAIL PROTECTED]> wrote: > this is what the python interpreter returns on giving the basic > command > > >>>pickle.dump(x,f) where x is a tuple and f is a file object > > Traceback (most recent call last): > File "<stdin>", line 1, in ? > NameError: name 'pickle' is not defined > > kindly elucidate what's wrong
You should import the module in the local namespace before using it: >>> import pickle >>> pickle.dump -- Lawrence, oluyede.org - neropercaso.it "It is difficult to get a man to understand something when his salary depends on not understanding it" - Upton Sinclair -- http://mail.python.org/mailman/listinfo/python-list