<br><br><div class="gmail_quote"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Feb 8, 2012 at 2:57 PM, ken brockman <span dir="ltr"><<a href="mailto:krush1954@yahoo.com" target="_blank">krush1954@yahoo.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div><div style="font-size:12pt;font-family:bookman old style,new york,times,serif"><div style="font-family:'bookman old style','new york',times,serif;font-size:12pt"><br></div><div style="font-family:'bookman old style','new york',times,serif;font-size:12pt">
<br></div><div><span style="color:rgb(69,69,69);font-family:Arial,Helvetica,sans-serif;font-size:12px">On Wed, Feb 8, 2012 at 12:33 PM, ken brockman <</span><a href="mailto:krush1954@yahoo.com" style="color:rgb(35,71,134);outline-width:0px;outline-style:initial;outline-color:initial;font-family:Arial,Helvetica,sans-serif;font-size:12px" target="_blank"><span>krush1954@yahoo.com</span></a><span style="color:rgb(69,69,69);font-family:Arial,Helvetica,sans-serif;font-size:12px">> wrote:</span><br style="color:rgb(69,69,69);font-family:Arial,Helvetica,sans-serif;font-size:12px">
<span style="color:rgb(69,69,69);font-family:Arial,Helvetica,sans-serif;font-size:12px">>> Using pickling I have somehow managed to save two separate lists, but the</span><br style="color:rgb(69,69,69);font-family:Arial,Helvetica,sans-serif;font-size:12px">
<span style="color:rgb(69,69,69);font-family:Arial,Helvetica,sans-serif;font-size:12px">>> </span><span style="color:rgb(54,99,136);border-bottom-width:2px;border-bottom-style:dotted;border-bottom-color:rgb(54,99,136);font-family:Arial,Helvetica,sans-serif;font-size:12px">dictionary</span><span style="color:rgb(69,69,69);font-family:Arial,Helvetica,sans-serif;font-size:12px"> is giving me much more of a struggle.</span><font color="#454545" face="Arial, Helvetica, sans-serif"><span style="font-size:12px"><br>
</span></font></div><div><span style="color:rgb(69,69,69);font-family:Arial,Helvetica,sans-serif;font-size:12px"><br></span></div><div><span><font color="#454545" face="Arial, Helvetica, sans-serif"><span><span style="font-size:12px">Got it. I manage to get it to save to disk, but only by using the shell to create an empty dictionary then pickling it and saving it to a file. Priming the pump as it were. I had thought i had read that when you pickle and save a list or dictionary to file, if it didn't already exist, it would be created. That hasn't been my experience. Had I misunderstood or Am i doing something wrong? Just for future reference. I'm as happy as the proverbial pig in excrement just to get it to function.</span></span></font></span></div>
<div><span><font color="#454545" face="Arial, Helvetica, sans-serif"><span><span style="font-size:12px">Thanks all for your
help.</span></span></font></span></div><span><font color="#888888"><div><span><font color="#454545" face="Arial, Helvetica, sans-serif"><span><span style="font-size:12px">Ken</span></span></font></span></div>
</font></span></div></div><br></div></div>Ken,</blockquote><div><br></div><div>Let me see if I understand your problem. You are pickling a dictionary and finding that it will not work unless there already is an existing dictionary for your pickled dictionary to write over. Otherwise, there is either no write at all or the write is followed by a delete. Is that a reasonable definition of your current problem? </div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Robert Berman</div></font></span></div><br>
</div><br>