Eric V. Smith <e...@trueblade.com> added the comment:

I think your code is rational. But since string.Formatter gets such little use, 
I'm not sure it's worth adding this to the stdlib. On the other hand, it could 
be used internal to string.Formatter.

We'd need to pick a better name, though. And maybe it should return the 
field_name as an int.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45704>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to