Python pickle on list
<p>Im trying to store a list in a flat file through and for some reason I dont see the file being created..under c:\python27\basics\db.txt</p>

<p>Here is my code:</p>

<p>make_db_pickle.py</p>

<pre><code>from Basics import data
import pickle

db = data.people

dbfilename = 'c:\python27\Basics\db.txt'

try:
    dbfile = open('dbfilename','wb')
except IOError as (errno,strerror):
    print "I/O error({0}): {1}".format(errno, strerror)
except ValueError:
    print "Could not convert data to an integer."
except:
    print "Unexpected Error", sys.exc_info() [0]

pickle.dump(db,dbfile)
dbfile.close()
</code></pre>

<p>data.py</p>

<pre><code>bob={'name':'bobs mith','age':42,'salary':5000,'job':'software'}
sue={'name':'sue more','age':30,'salary':3000,'job':'hardware'}

people={}
people['bob'] = bob
people['sue'] = sue
</code></pre>
