Writing an integer to a file?!?

Grant Edwards grante at visi.com
Tue Nov 7 14:48:06 EST 2000


In article <mailman.973625663.1782.python-list at python.org>, Gabriel Ambuehl wrote:

>> If you _really_ want to write binary data rather than a string
>> (generally a bad idea), then you need to use the 'struct'
>> module to convert the int to a "string" containing binary data.
>> [Insert standard warnings about byte ordering, etc.]
>
>Couldn't cause any problems here. That timestamp is only intended to
>be used on the very same machine running the very same OS.

Famous last words...  

Sort of like: "Couldn't cause any problems here. This program
isn't intended to be in use in the year 2000."

;)

-- 
Grant Edwards                   grante             Yow!  The SAME WAVE keeps
                                  at               coming in and COLLAPSING
                               visi.com            like a rayon MUU-MUU...



More information about the Python-list mailing list