[Numpy-discussion] savetxt fmt argument fails when using a unicode string
Pierre Haessig
pierre.haessig at crans.org
Thu Nov 14 03:25:21 EST 2013
Le 13/11/2013 17:54, Daπid a écrit :
>
> np.savetxt('a.csv', [1], fmt=str('%.3f'))
Thanks, that's what I did too.
I'm just still wondering whether there is a cleaner solution...
>
> Without the str, I get a clearer error:
> ValueError: invalid fmt: u'%.3f'
>
Yeah, the commit by Warren Weckesser makes things much clearer.
--
Pierre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131114/81c29cc9/attachment.sig>
More information about the NumPy-Discussion
mailing list