Am I overlooking tick format support for ``format``?
http://docs.python.org/library/functions.html#format
If not, might it be added?
Ordinarily I'd use FormatStrFormatter, but this time
I wanted percentages, so I had to (?) use FuncFormatter.
This was both surprising (because ``format`` is core
Python functionality) and confusing (because the docs
did not point out that the user-provided function must
take two arguments).
Thanks,
Alan Isaac
I second this. Given that the ‘%’ approach to formatting will be deprecated in later releases of the 3.x series, it probably would be a good idea to start transitioning to the new approach.
To start, I would like to see a note added to the FormatStrFormatter docs pointing to an example on how to use FuncFormatter to implement the new style formatter.
Ben Root
···
On Tue, Feb 22, 2011 at 1:42 PM, Alan G Isaac <aisaac@…310…> wrote:
Am I overlooking tick format support for format
?
http://docs.python.org/library/functions.html#format
If not, might it be added?
Ordinarily I’d use FormatStrFormatter, but this time
I wanted percentages, so I had to (?) use FuncFormatter.
This was both surprising (because format
is core
Python functionality) and confusing (because the docs
did not point out that the user-provided function must
take two arguments).
Thanks,
Alan Isaac