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

> Side note: It's a somewhat weird that `.get_field` expects a string while 
> `.get_value` expects an int for positional arguments.

.parse is just concerned with parsing, so it works on and returns strings. 
.get_field takes strings because it is the thing that's trying to determine 
whether or not a field name looks like an integer or not. At least that's how I 
remember it.

----------

_______________________________________
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