Message351033
Hello Karthikeyan,
Thank you very much for your valuable explanation.
Regards,
Pavan Uppalanchu
On Mon, Sep 2, 2019 at 11:28 PM Karthikeyan Singaravelan
<report@bugs.python.org> wrote:
>
>
> Karthikeyan Singaravelan <tir.karthi@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 <report@bugs.python.org>
> <https://bugs.python.org/issue38012>
> _______________________________________ |
|
Date |
User |
Action |
Args |
2019-09-02 18:13:03 | uppalanchupavankumar45@gmail.com | set | recipients:
+ uppalanchupavankumar45@gmail.com, tim.peters |
2019-09-02 18:13:03 | uppalanchupavankumar45@gmail.com | link | issue38012 messages |
2019-09-02 18:13:03 | uppalanchupavankumar45@gmail.com | create | |
|