Canonical way of dealing with null-separated lines?

Douglas Alan nessus at mit.edu
Wed Feb 23 22:54:50 EST 2005


Is there a canonical way of iterating over the lines of a file that
are null-separated rather than newline-separated?  Sure, I can
implement my own iterator using read() and split(), etc., but
considering that using "find -print0" is so common, it seems like
there should be a more cannonical way.

|>oug



More information about the Python-list mailing list