[Tutor] cannot save changes to dictionary in a shelve file

Kalle Svensson kalle@lysator.liu.se
Wed, 16 Oct 2002 23:27:45 +0200


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[David Lawrence]
> Please help - if you'd like to skip my long intro, see my IDLE
> session capture at the end of this message. At the end of the
> session, you can see that although I added '4:"proj004"' to the end
> of the dictionary, the dictionary doesn't contain that pair after I
> close & open the shelve file. Why?

Try adding 'db["projects"] = projects' before 'db.close()'.

Peace,
  Kalle
- -- 
Kalle Svensson, http://www.juckapan.org/~kalle/
Student, root and saint in the Church of Emacs.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>

iD8DBQE9rdnPdNeA1787sd0RAiOkAJ94Jk6hMEFD2JBSByLOd8rCKKr2wwCeIkC3
fIXgeHtJ/FDaD8DbMMCxIwQ=
=zjGT
-----END PGP SIGNATURE-----