Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

Here min uses the ASCII value of the letters for comparison. So for 'Infinity' 
'I' (73) has the lowest value and for 'inFinity' 'F' (70) has the lowest value 
as seen below.

>>> list(map(lambda c: (c, ord(c)), 'Infinity'))
[('I', 73), ('n', 110), ('f', 102), ('i', 105), ('n', 110), ('i', 105), ('t', 
116), ('y', 121)]
>>> list(map(lambda c: (c, ord(c)), 'inFinity'))
[('i', 105), ('n', 110), ('F', 70), ('i', 105), ('n', 110), ('i', 105), ('t', 
116), ('y', 121)]

----------
nosy: +xtreak

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

Reply via email to