[issue46671] "ValueError: min() arg is an empty sequence" is wrong (builtins.min/max)

2022-02-06 Thread Nnarol
Change by Nnarol : -- components: +Interpreter Core -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46671] "ValueError: min() arg is an empty sequence" is wrong (builtins.min/max)

2022-02-06 Thread Nnarol
Change by Nnarol : -- keywords: +patch pull_requests: +29352 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31181 ___ Python tracker ___

[issue46671] "ValueError: min() arg is an empty sequence" is wrong (builtins.min/max)

2022-02-06 Thread Nnarol
New submission from Nnarol : Incorrect error message by min_max(): "ValueError: min() arg is an empty sequence" when using the form min(iterable, *[, default=obj, key=func]) -> value and "iterable" is empty, like so: min([]) or: min(set()) "Sequence" is referred to, even