Matthew Barnett <pyt...@mrabarnett.plus.com> added the comment:

Re: msg107776.

If it looks like an integer (ie, can be converted to an integer by 'int') then 
it's positional, otherwise it's a key. An optimisation is to perform a quick 
check upfront to see whether it starts like an integer.

----------

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

Reply via email to