Re: Binary file output using python

2007-04-19 Thread Nick Craig-Wood
Peter Otten <[EMAIL PROTECTED]> wrote: > Chi Yin Cheung wrote: > > > Is there a way in python to output binary files? I need to python to > > write out a stream of 5 million floating point numbers, separated by > > some separator, but it seems that all python supports natively is string > > infor

Re: Binary file output using python

2007-04-17 Thread Peter Otten
Chi Yin Cheung wrote: > Is there a way in python to output binary files? I need to python to > write out a stream of 5 million floating point numbers, separated by > some separator, but it seems that all python supports natively is string > information output, which is extremely space inefficient.

Re: Binary file output using python

2007-04-17 Thread bvukov
On Apr 17, 10:30 pm, Thomas Dybdahl Ahle <[EMAIL PROTECTED]> wrote: > Den Tue, 17 Apr 2007 11:07:38 -0700 skrev kyosohma: > > > On Apr 17, 12:41 pm, Chi Yin Cheung <[EMAIL PROTECTED]> wrote: > >> Hi, > >> Is there a way in python to output binary files? I need to python to > >> write out a stream o

Re: Binary file output using python

2007-04-17 Thread Thomas Dybdahl Ahle
Den Tue, 17 Apr 2007 11:07:38 -0700 skrev kyosohma: > On Apr 17, 12:41 pm, Chi Yin Cheung <[EMAIL PROTECTED]> wrote: >> Hi, >> Is there a way in python to output binary files? I need to python to >> write out a stream of 5 million floating point numbers, separated by >> some separator, but it seem

Re: Binary file output using python

2007-04-17 Thread Michael Hoffman
Michael Hoffman wrote: > Chi Yin Cheung wrote: >> Hi, >> Is there a way in python to output binary files? I need to python to >> write out a stream of 5 million floating point numbers, separated by >> some separator, but it seems that all python supports natively is >> string information output,

Re: Binary file output using python

2007-04-17 Thread Michael Hoffman
Chi Yin Cheung wrote: > Hi, > Is there a way in python to output binary files? I need to python to > write out a stream of 5 million floating point numbers, separated by > some separator, but it seems that all python supports natively is string > information output, which is extremely space inef

Re: Binary file output using python

2007-04-17 Thread kyosohma
On Apr 17, 12:41 pm, Chi Yin Cheung <[EMAIL PROTECTED]> wrote: > Hi, > Is there a way in python to output binary files? I need to python to > write out a stream of 5 million floating point numbers, separated by > some separator, but it seems that all python supports natively is string > information

Binary file output using python

2007-04-17 Thread Chi Yin Cheung
Hi, Is there a way in python to output binary files? I need to python to write out a stream of 5 million floating point numbers, separated by some separator, but it seems that all python supports natively is string information output, which is extremely space inefficient. I'd tried using the pi