Ticket #6063 enhancement closed fixed
Support arbitrary formatting helpers in FancyStrMixin
|Reported by:||exarkun||Owned by:||exarkun|
|Priority:||normal||Milestone:||Python 3.3 Minimal|
FancyStrMixin supports the printf-style string formatting specification for controlling how attributes are displayed. This is handy, but printf-style only goes so far. For example, on Python 3, there is no printf-style formatter which operates on bytes instance to produce a "foo\x00"-style output (%s comes with an unwanted b prefix).
Allowing a formatting function to be supplied would let applications format things any way they wish. This is most directly needed by #6057, but is probably more widely useful.