Longint?!

Helmut Jarausch jarausch at skynet.be
Fri Jul 23 10:50:54 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.
> 

There is an sscanf module around (1995 Stichting Mathematisch Centrum)
which has a 'long' format control.
If you can't find it, I can send you the file.

-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



More information about the Python-list mailing list