File record separators.

HMS Surprise john at datavoiceint.com
Tue May 15 11:05:25 EDT 2007


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
separator to use to ensure that I read in one record (list of lists)
at a time, '\n'? I want to try to stay with what is considered
standard python idioms.


Thanks,

jvh




More information about the Python-list mailing list