how to use xdrlib
Alan Wilter Sousa da Silva
awilter at ebi.ac.uk
Sun Aug 22 11:05:22 CEST 2010
I am trying to understand how xdrlib works as I want to read files in this
format. The problem is I don't much about xdr (although I read
http://docs.python.org/library/xdrlib.html and RFC 1832).
Another problem is I don't know how the file I want to read was encoded.
So when I do something like:
f = open('file.xdr').read()
data = xdrlib.Unpacker(f)
Then, I don't know which "unpack_*" to use.
If I use,
sometimes it returns something meaningful like:
but other times,
if not a error.
Well, as you see, I am a bit lost here and any hint would be very
Thanks in advance,
Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
Department of Biochemistry, University of Cambridge.
80 Tennis Court Road, Cambridge CB2 1GA, UK.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list