[issue38012] Python Fuction min is case sentive ?
Pavan Kumar Uppalanchu
report at bugs.python.org
Mon Sep 2 14:09:58 EDT 2019
Pavan Kumar Uppalanchu <uppalanchupavankumar45 at gmail.com> added the comment:
Hello Tim,
Thanks for your quick response.
Also, THE min("Infinity") is priniting "I". Practically, the minimum
value is "e" right ?
Regards,
Pavan Uppalanchu
On Mon, Sep 2, 2019 at 11:31 PM Tim Peters <report at bugs.python.org> wrote:
>
>
> Tim Peters <tim at python.org> added the comment:
>
> This has nothing in particular do with `min()`. As strings, 'I' < 'i', and 'F' < 'I'. For example,
>
> >>> 'I' < 'i'
> True
>
> >>> sorted("InFinity")
> ['F', 'I', 'i', 'i', 'n', 'n', 't', 'y']
>
> That's all working as intended and as documented, so I'm closing this report.
>
> ----------
> nosy: +tim.peters -xtreak
> resolution: -> not a bug
> stage: -> resolved
> status: open -> closed
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue38012>
> _______________________________________
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38012>
_______________________________________
More information about the Python-bugs-list
mailing list