Reading lines of null-terminated text?

Dan Stromberg drsalists at
Mon Nov 29 22:44:56 CET 2010

What's the best way of reading lines of null terminated (ASCII NUL, \0) text
in Python 2.x?  How about for 3.x?

I've been using with
2.x, but I'm moving some of my stuff to 3.x, and am wondering if there's a
way that would obviate readline0.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list