Re: [Tutor] Append a dictionary value

2009-04-04 Thread David
Sander Sweers wrote: I do not understand what it is you want to do. Do you want to replace the old date and time with the new? If so you already do this with todo[answer] = datevalue, time. Why do you want to use setdefault? I was confused, I thought it would add another value to the key not

Re: [Tutor] Append a dictionary value

2009-04-04 Thread Sander Sweers
2009/4/4 David : > 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

Re: [Tutor] Append a dictionary value

2009-04-04 Thread David
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 i

[Tutor] Append a dictionary value

2009-04-04 Thread David
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 d