Re: dealing with binary files

2008-01-07 Thread Gerardo Herzig
Tom Brown wrote: >On Mon, 2008-01-07 at 11:57 -0200, Guilherme Polo wrote: > > >>2008/1/7, Gerardo Herzig <[EMAIL PROTECTED]>: >> >> >>>Hi all. Im trying to read a binary data from an postgres WAL archive. >>>If i make a >>>xfile = open('filename', 'rb').xreadlines() >>>line = xfile.next() >

Re: dealing with binary files

2008-01-07 Thread Tom Brown
On Mon, 2008-01-07 at 11:57 -0200, Guilherme Polo wrote: > 2008/1/7, Gerardo Herzig <[EMAIL PROTECTED]>: > > Hi all. Im trying to read a binary data from an postgres WAL archive. > > If i make a > > xfile = open('filename', 'rb').xreadlines() > > line = xfile.next() > > > > i see this sort of thing

Re: dealing with binary files

2008-01-07 Thread Peter Otten
Gerardo Herzig wrote: > Hi all. Im trying to read a binary data from an postgres WAL archive. > If i make a > xfile = open('filename', 'rb').xreadlines() > line = xfile.next() > > i see this sort of thing: > ']\xd0\x03\x00\x01\x00\x00\x00\r\x00\x00\x00\x00\x00\x00JM//DI+,D\x00\x00\x00\x01$\x00\x

Re: dealing with binary files

2008-01-07 Thread Guilherme Polo
2008/1/7, Gerardo Herzig <[EMAIL PROTECTED]>: > Hi all. Im trying to read a binary data from an postgres WAL archive. > If i make a > xfile = open('filename', 'rb').xreadlines() > line = xfile.next() > > i see this sort of thing: > ']\xd0\x03\x00\x01\x00\x00\x00\r\x00\x00\x00\x00\x00\x00JM//DI+,D\x

dealing with binary files

2008-01-07 Thread Gerardo Herzig
Hi all. Im trying to read a binary data from an postgres WAL archive. If i make a xfile = open('filename', 'rb').xreadlines() line = xfile.next() i see this sort of thing: ']\xd0\x03\x00\x01\x00\x00\x00\r\x00\x00\x00\x00\x00\x00JM//DI+,D\x00\x00\x00\x01$\x00\x00\x00\x7f\x06\x00\x00y\r\t\x00\x02\x