I need to unpack information in python from a C Structure, doing it by the following code:
struct.unpack_from('>I', file.read(4))[0]
and afterwards, writing changed values back:
new_value = struct.pack('>I', 008200)
file.write(new_value)
a few examples: 008200 returns an syntaxerror: invalid token. 000010 is written into: 8 000017 is written into: 15 000017 returns a syntaxerror.
I have no idea what kind of conversion that is. Any kind of help would be great.