Writing to shelve file. : Shelve : Database PYTHON TUTORIALS


PYTHON TUTORIALS » Database » Shelve »

 

Writing to shelve file.


import sys
import shelve

try:
   outCredit = shelve.open"credit.dat" )
except IOError:
   print >> sys.stderr, "File could not be opened"
   sys.exit)

outCredit"2" "data"

outCredit.close()   # close shelve file



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Database
» Shelve