readlines() to use character other than \n?

Michael McGovern mmcgover at
Fri May 4 14:17:25 EDT 2001

Forgive me if there is an obvious answer to this, I am new to Python...

Is there a python equivalent to setting the $/ variable in perl so that
lines can be delineated by something other than newlines when reading a file
one "line" at a time?


More information about the Python-list mailing list