Re: [Tutor] general basic question

2012-02-09 Thread Andreas Perstinger
On Wed, 8 Feb 2012 23:54:58 -0800 (PST) ken brockman wrote: > I'm back on the list again, and if not too late, here is the asked > for trace. i've managed to replicate the original error msg, by > removing the pickled file Genfacts.p, from the directory. > Traceback (most recent call last): > File

[Tutor] general basic question

2012-02-08 Thread ken brockman
Really close to it Robert. No delete but an error msg. Something akin to file dosen't exist, not found , or words to that effect . Something "akin to"? I'm back on the list again, and if not too late, here is the asked for trace.  i've managed to replicate the original error msg, by removing t

Re: [Tutor] general basic question

2012-02-08 Thread Steven D'Aprano
ken brockman wrote: Really close to it Robert. No delete but an error msg. Something akin to file dosen't exist, not found , or words to that effect . Something "akin to"? How about if you copy and paste the actual error message, instead of asking us to guess? That means the full traceba

Re: [Tutor] general basic question

2012-02-08 Thread Alan Gauld
On 08/02/12 21:28, ken brockman wrote: Really close to it Robert. No delete but an error msg. Something akin to file dosen't exist, not found , or words to that effect . Without sight of code it's only a guess but are you creating the file with the 'wb' mode - ie. write binary? :- myPickleFil

Re: [Tutor] general basic question

2012-02-08 Thread Joel Goldstick
On Wed, Feb 8, 2012 at 4:28 PM, ken brockman wrote: > 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

[Tutor] general basic question

2012-02-08 Thread ken brockman
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 b

Re: [Tutor] general basic question

2012-02-08 Thread Robert Berman
On Wed, Feb 8, 2012 at 2:57 PM, ken brockman wrote: > > > On Wed, Feb 8, 2012 at 12:33 PM, ken brockman wrote: > >> Using pickling I have somehow managed to save two separate lists, but > the > >> dictionary is giving me much more of a struggle. > > Got it. I manage to get it to save to disk, bu

[Tutor] general basic question

2012-02-08 Thread ken brockman
On Wed, Feb 8, 2012 at 12:33 PM, ken brockman wrote: >> Using pickling I have somehow managed to save two separate lists, but the >> dictionary is giving me much more of a struggle. Got it. I manage to get it to save to disk, but only by using the shell to create an empty dictionary then pic

Re: [Tutor] general basic question

2012-02-08 Thread Joel Goldstick
On Wed, Feb 8, 2012 at 12:33 PM, ken brockman wrote: >> Using pickling I have somehow managed to save two separate lists, but the >> dictionary is giving me much more of a struggle. > > Well do post back if you don't manage to solve your issues (with full > error messages & stack traces as relevan

[Tutor] general basic question

2012-02-08 Thread ken brockman
> Using pickling I have somehow managed to save two separate lists, but the > dictionary is giving me much more of a struggle. Well do post back if you don't manage to solve your issues (with full error messages & stack traces as relevant please.)  Re dictionaries -- I actually forgot to mention,

Re: [Tutor] general basic question

2012-02-08 Thread Walter Prins
Hi Ken, On 8 February 2012 14:17, ken brockman wrote: > Thank you Walter for your help and speedy reply. You're welcome. > Using pickling I have somehow managed to save two separate lists, but the > dictionary is giving me much more of a struggle. Well do post back if you don't manage to solve

[Tutor] general basic question

2012-02-08 Thread ken brockman
On 8 February 2012 13:40, ken brockman wrote: > Hello all: > I have a general and very basic question if I may. I am in the process > of attempting to write my first python app. I wanted to collect information > and save it to lists and dictionaries. My question is, is it possible to > save said l

Re: [Tutor] general basic question

2012-02-08 Thread Walter Prins
Hi Ken, Welcome to Python and to programming in general. On 8 February 2012 13:40, ken brockman wrote: > Hello all: > I have a general and very basic question if I may. I am in the process > of attempting to write my first python app. I wanted to collect information > and save it to lists and di

[Tutor] general basic question

2012-02-08 Thread ken brockman
Hello all: I have a general and very basic question if I may. I am in the process of attempting to write my first python app. I wanted to collect information and save it to lists and dictionaries. My question is, is it possible to save said lists and dictionaries in the program proper, or do i n