[Pythonmac-SIG] binary file strangeness
Rod Morehead
rmore@onramp.net
Mon, 14 Sep 1998 16:10:19 -0500 (CDT)
Bill Dozier writes:
> Hi,
>
> I'm trying to write a MIDI sysex editor (starting with working with the
> Roland GP-100) in Python and have come across a little strangeness.
>
> Certain bytes having a value of 0x10 are being read as having a value of
> 0x13. I see the 0x10 values from Norton Disk Editor, or from reading the
> file with a Tcl script.
>
> Anyone else see something like this?
You might want to try opening the file with the binary "b" flag added.
file=open("foopath", "rb")
Thanks,
-- Rod Morehead
rmore@onramp.net