You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
%-formatting has i, {}-formatting doesn't, so while
In [1]: from formatist import convert
In [11]: fstr = "%(foo)i"
In [14]: fstr % dict(foo=3.9)
Out[14]: '3'
In [15]: convert(fstr).format(foo=3.9)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-15-ce673c4d3d28> in <module>()
----> 1 convert(fstr).format(foo=3.9)
ValueError: Unknown format code 'i' for object of type 'float'
The text was updated successfully, but these errors were encountered:
%
-formatting hasi
,{}
-formatting doesn't, so whileThe text was updated successfully, but these errors were encountered: