Re: [Tutor] How best to structure a plain text data file for use in program(s) and later updating with new data?

2014-10-08 Thread Martin A. Brown
Good afternoon again, I looked at [0] and it states that it is backwards compatible to version 2.5, which is one iteration higher than my lowest installed python version at work. They provide a link to an older simplejson that is from the python 2.2 era, but state that this should be done only

Re: [Tutor] How best to structure a plain text data file for use in program(s) and later updating with new data?

2014-10-08 Thread boB Stepp
On Wed, Oct 8, 2014 at 2:19 PM, Martin A. Brown wrote: > > Good afternoon, > >>> If its not too big a task you could even convert the data >>> structure to JSON which is quite a close match to what you >>> have now and the json module will help you read/write >>> to them. Looking at some examples

Re: [Tutor] Welcome to the "Tutor" mailing list

2014-10-08 Thread Danny Yoo
On Wed, Oct 8, 2014 at 12:16 PM, Danny Yoo wrote: > >> I was reading IDLE tutorial. >> The following document dose not exist. >> http://www.python.org/idle/doc/ >> >> It was referenced from >> https://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/ >> > > Ok. I'll correct the broken link as soon a

Re: [Tutor] Welcome to the "Tutor" mailing list

2014-10-08 Thread Danny Yoo
> I was reading IDLE tutorial. > The following document dose not exist. > http://www.python.org/idle/doc/ > > It was referenced from https://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/ > Ok. I'll correct the broken link as soon as I have time. Thanks. _

Re: [Tutor] How best to structure a plain text data file for use in program(s) and later updating with new data?

2014-10-08 Thread Martin A. Brown
Good afternoon, If its not too big a task you could even convert the data structure to JSON which is quite a close match to what you have now and the json module will help you read/write to them. I would agree with the JSON recommendation (until your data set grows to more than 10GB in size)

Re: [Tutor] How best to structure a plain text data file for use in program(s) and later updating with new data?

2014-10-08 Thread boB Stepp
On Wed, Oct 8, 2014 at 11:27 AM, Alan Gauld wrote: > On 08/10/14 16:47, boB Stepp wrote: > >>> It looks like you have csv like data. Except you have a semicolon as >>> a separator. Look at the csv module. That should work for you >>> >> Joel, will the labels (like SERIAL_ROI:) cause me difficul

Re: [Tutor] Welcome to the "Tutor" mailing list

2014-10-08 Thread Kazem Ardekanian
Hi, I was reading IDLE tutorial. The following document dose not exist. http://www.python.org/idle/doc/ It was referenced from https://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/ Thanks, Kazem On Wed, Oct 8, 2014 at 9:48 AM, wrote: > Welcome to the Tutor@python.org mailing list! This list

Re: [Tutor] How best to structure a plain text data file for use in program(s) and later updating with new data?

2014-10-08 Thread Alan Gauld
On 08/10/14 16:47, boB Stepp wrote: It looks like you have csv like data. Except you have a semicolon as a separator. Look at the csv module. That should work for you Joel, will the labels (like SERIAL_ROI:) cause me difficulties? I will need to strip these off to get to the actual data. Bu

Re: [Tutor] How best to structure a plain text data file for use in program(s) and later updating with new data?

2014-10-08 Thread boB Stepp
On Wed, Oct 8, 2014 at 10:02 AM, Joel Goldstick wrote: [...] > It looks like you have csv like data. Except you have a semicolon as > a separator. Look at the csv module. That should work for you > Joel, will the labels (like SERIAL_ROI:) cause me difficulties? I will need to strip these off

Re: [Tutor] How best to structure a plain text data file for use in program(s) and later updating with new data?

2014-10-08 Thread Joel Goldstick
On Wed, Oct 8, 2014 at 10:56 AM, boB Stepp wrote: > About two years ago I wrote my most ambitious program to date, a > hodge-podge collection of proprietary scripting, perl and shell files > that collectively total about 20k lines of code. Amazingly it actually > works and has saved my colleagues

[Tutor] How best to structure a plain text data file for use in program(s) and later updating with new data?

2014-10-08 Thread boB Stepp
About two years ago I wrote my most ambitious program to date, a hodge-podge collection of proprietary scripting, perl and shell files that collectively total about 20k lines of code. Amazingly it actually works and has saved my colleagues and I much time and effort. At the time I created this mess

Re: [Tutor] Suggestions Please

2014-10-08 Thread Dave Angel
Phillip Pugh Wrote in message: > Thank you All!! > > I am impressed with the support. It was very helpful and timely. I was able > to put together a script to do what I wanted. I know now that I wont be > wasting time learning Python. As with any language, it is about > understanding the s