Longint?!
Dominic
nomail at nomail.nomail
Fri Jul 23 10:01:26 EDT 2004
Ivo wrote:
> Pythoneers,
> I am trying to reed a long integer (4 byte value like in pascal) in python
> but i don't seem to succeed.
>
> It's from a binary file where from a certain offset in the file 4 bytes
> (longint) tell how long a header is.
>
> because I don't have to assign a type to a variable I don't know how to
> ensure i get the longint type read from the file.
>
> Help very much appreciatend.
maybe the module struct will help you....
More information about the Python-list
mailing list