Serhiy Storchaka <[email protected]> added the comment:
This conversion is very special. For all other conversions
{value:!c:format_spec} is equivalent to format(conv(value), format_spec), but
not this conversion. It is also specific for f-strings, and is not particularly
useful in format strings.
Would not be better to use more special syntax for it? For example "!=" or
"!!"? Letters can be reserved for future "normal" conversions. It may be we
even allowed to register new converters by name.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36774>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com