[Numpy-discussion] savetxt to a string?

Neal Becker ndbecker2 at gmail.com
Wed Dec 22 08:53:22 EST 2010

Peter wrote:

> On Wed, Dec 22, 2010 at 1:08 PM, Neal Becker <ndbecker2 at 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