Re: binary conversion issues

2006-08-08 Thread Grant Edwards
On 2006-08-08, godavemon <[EMAIL PROTECTED]> wrote: > You guys are awesome! I had to set the 'b' flag when writing the > binaries. > > file_obj = open('filename.bin', 'wb') > > instead of just using 'w' > > It worked fine for all of the other 10 binary files I made, > but had a small error with on

Re: binary conversion issues

2006-08-08 Thread godavemon
You guys are awesome! I had to set the 'b' flag when writing the binaries. file_obj = open('filename.bin', 'wb') instead of just using 'w' It worked fine for all of the other 10 binary files I made, but had a small error with one of them. In that one file's case it wrote out an extra 4 bytes i

Re: binary conversion issues

2006-08-08 Thread Grant Edwards
On 2006-08-08, godavemon <[EMAIL PROTECTED]> wrote: > I'm using python's struct and binascii modules to write some values > from my parser to binary floats. This works great for all of my binary > files except one. For some reason this file is saving to 836 (stated > by my command shell) bytes i

Re: binary conversion issues

2006-08-08 Thread Simon Forman
godavemon wrote: > I'm using python's struct and binascii modules to write some values > from my parser to binary floats. This works great for all of my binary > files except one. For some reason this file is saving to 836 (stated > by my command shell) bytes instead of 832 like it should. It so

binary conversion issues

2006-08-08 Thread godavemon
I'm using python's struct and binascii modules to write some values from my parser to binary floats. This works great for all of my binary files except one. For some reason this file is saving to 836 (stated by my command shell) bytes instead of 832 like it should. It sounds like an issue with w