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 that I pull in only one at a > time with readline(?). > > ['a', 'b'], ['c','d']] > [['a', 'b'], ['c','d'], ['e','f']] > > 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. -- http://mail.python.org/mailman/listinfo/python-list