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
I find the format function awesome. It is very intuitive. And sometimes, I even like to put it into a kind of generate_formatter, like myformat(x) = format(x, width=3). This is slow as said in the README. Hence it would be awesome if generate_formatter(width=3, ...) would work to create an efficient version of this.
The text was updated successfully, but these errors were encountered:
I'm not sure how this could be accomplished, because format (and fmt) work by looking at the type of x, and the format is based on that. generate_formatter looks up a fixed format string, and either uses a cached FormatSpec, or creates one and caches it.
I'll try to think of a way that it could be optimized - it would need additional information not in FormatSpec to support all of the options such as autoscale, fractionsep, fractionwidth, mixedfraction, mixedfractionsep, parens, stripzeros, suffix, tryden.
I find the format function awesome. It is very intuitive. And sometimes, I even like to put it into a kind of generate_formatter, like myformat(x) = format(x, width=3). This is slow as said in the README. Hence it would be awesome if generate_formatter(width=3, ...) would work to create an efficient version of this.
The text was updated successfully, but these errors were encountered: