[Numpy-discussion] savetxt to a string?

Neal Becker ndbecker2@gmail....
Wed Dec 22 07:53:22 CST 2010


Peter wrote:

> On Wed, Dec 22, 2010 at 1:08 PM, Neal Becker <ndbecker2@gmail.com> wrote:
>>
>> Is the formatting of savetxt available with a string as the destination?
>>
>> If not, shouldn't this functionality be factored out of savetxt?
>>
> 
> Have you tried using a StringIO handle?
> 
> Peter

Yup.  But wouldn't it be cleaner to factor out this functionality and make 
saving to a file use this?



More information about the NumPy-Discussion mailing list