[Tutor] reading an input stream

richard kappler richkappler at gmail.com
Thu Jan 7 17:22:58 EST 2016


On Thu, Jan 7, 2016 at 5:07 PM, Cameron Simpson <cs at zip.com.au> wrote:

>
> Just a few followup remarks:
>
> This is all Python 3, where bytes and strings are cleanly separated.
> You've got a binary stream with binary delimiters, so we're reading binary
> data and returning the binary XML in between. We separately decode this
> into a string for handing to your XML parser. Just avoid Python 2
> altogether; this can all be done in Python 2 but it is not as clean, and
> more confusing.
>

Love to, can't. Splunk uses 2.7 so that's what we have to work with. That
will not change in the forseeable future. Doing other homework right now,
but will more closely review this and the other posts that have come in
since I left work later tonight or first thing in the morning.

regards, Richard


More information about the Tutor mailing list