reading binary data

Fredrik Lundh fredrik at pythonware.com
Wed Mar 14 16:54:09 EST 2001


Francois Forest wrote:
> I found that I can read a binary file and get the result in a string,
> Is there a way to convert a string slice into an int16, int32, or
> floatting point ?

http://www.python.org/doc/current/lib/module-struct.html

> More generally, how can I browse through standard libraries ?

http://www.pydoc.org

Cheers /F

<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->





More information about the Python-list mailing list