Reading lines of null-terminated text?

Dan Stromberg drsalists at gmail.com
Mon Nov 29 16:44:56 EST 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 http://stromberg.dnsalias.org/~strombrg/readline0.html 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.

TIA!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101129/ae0a657c/attachment.html>


More information about the Python-list mailing list