[Python-ideas] Re: Support more conversions in format string

2021-04-27 Thread Stephen J. Turnbull
Cameron Simpson writes: > First up, I have somehow missed this (":format_name") in the > semirecursive mess which is the python format-and-friends descriptions. > (object.__format__? str.format? str.formap_map? f''? the format > mini-language? all in separate places, for reasonable rea

[Python-ideas] Re: Support more conversions in format string

2021-04-27 Thread Stephen J. Turnbull
Serhiy Storchaka writes: > Because it converts value to string, and string formatting does not > support "g". Converters !s, !r and !a are separated from format > specifier, and it is old and widely used feature. And poorly documented, IMO. I'll see if I can do better. > but if we are going