On Sun, Jun 1, 2008 at 7:03 AM, bob gailer <[EMAIL PROTECTED]> wrote:
> Even more concise and possibly faster:
>
> data = open('out.out').read().replace('\n', '\\').split('\\')
Or use re.split() to split without the replace:
import re
data = open('out.out').read()
data = re.split(r'[\n\\]', data)
Kent
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
