Canonical way of dealing with null-separated lines?

John Machin sjmachin at lexicon.net
Thu Feb 24 16:27:27 EST 2005


On Thu, 24 Feb 2005 14:51:07 -0500, Christopher De Vries
<devries at idolstarastronomer.com> wrote:

>
>The other modification would be an option to ignore multiple nulls in a row,
>rather than returning empty strings, which could be done in a similar way.
>

Why not leave this to the caller? Efficiency?? Filtering out empty
lines is the least of your worries.

Try giving the callers options to do things they *can't* do
themselves, like a different line-terminator or a buffer size > 2048
[which could well enhance efficiency] or < 10 [which definitely
enhances testing]






More information about the Python-list mailing list