Re: File record separators.

2007-05-15 Thread HMS Surprise
> > > Would like to use pickle but it is apparently unavailable in the > > package I am using, Jython 2.2. > > I am pretty sure some version of pickle or cPickle is available in Jython 2.1, > though. I'd take a second look, to be sure. Many thanks Boris! import cPickle caused no errors! -- ht

Re: File record separators.

2007-05-15 Thread Grant Edwards
On 2007-05-15, HMS Surprise <[EMAIL PROTECTED]> wrote: > Would like to use pickle but it is apparently unavailable in the > package I am using, Jython 2.2. Odd. At least in 2.4, pickle.py seems to be Jython-aware. -- Grant Edwards grante Yow! does your DRESSING

Re: File record separators.

2007-05-15 Thread Boris Borcic
HMS Surprise wrote: > Thanks folks. Was unaware of enumerate , still have a lot to learn > about python. > > Sorry for the poorly phrased request, but you gathered the gist of it. > My wonderment is how to write the following 2 lines and make sure they > are saved as separate records or lines so t

Re: File record separators.

2007-05-15 Thread HMS Surprise
Thanks folks. Was unaware of enumerate , still have a lot to learn about python. Sorry for the poorly phrased request, but you gathered the gist of it. My wonderment is how to write the following 2 lines and make sure they are saved as separate records or lines so that I pull in only one at a time

Re: File record separators.

2007-05-15 Thread Grant Edwards
On 2007-05-15, HMS Surprise <[EMAIL PROTECTED]> wrote: > I need to write 2 member lists to a file. For each record the number > of these lists can be different. I think a good way to handle that may > be to make each record a list of lists. I am restricted to using > version 2.2. That being the ca

Re: File record separators.

2007-05-15 Thread Larry Bates
HMS Surprise wrote: > I need to write 2 member lists to a file. For each record the number > of these lists can be different. I think a good way to handle that may > be to make each record a list of lists. I am restricted to using > version 2.2. That being the case what is a good standard record >