[Tutor] Append a dictionary value
David
david at abbottdavid.com
Sun Apr 5 00:30:29 CEST 2009
David wrote:
> I put together a todo program here;
> http://linuxcrazy.pastebin.com/f74beaf78
>
> And I am trying to add an option to edit the values which are date and
> time. Below I have gotten this far but now I need some help. looks like
> my attempt to use setdefault will not work. Please point me in the right
> direction my head has started to hurt :)
> thanks
> -david
I guess because the value is a tuple that that can not be changed. So
what I did is save the current values as variables and them del the
dictionary key and make a new one with the saved variables, or new ones
if edited.
--
Powered by Gentoo GNU/LINUX
http://www.linuxcrazy.com
pgp.mit.edu
More information about the Tutor
mailing list