Readline and record separator

BartlebyScrivener bscrivener42 at gmail.com
Tue Oct 30 15:42:29 CET 2007


On Oct 30, 7:21 am, Johny <pyt... at hope.cz> wrote:
> My problem is that my record consits several '\n' and when I use
> readline it does NOT read the whole my record.
> So If I could change '\n' as  a record separator for readline, it
> would solve my problem.

Python Cookbook (great book!) 2nd Ed pg. 717: "Iterating on a Stream
of Data Blocks as a Stream of Lines."

Allows you to specify both eol for source and output file.

rd




More information about the Python-list mailing list