Re:Python's Max() Is Broken
by timfi on Wednesday January 17, 2024 @05:52AM
(#39026071)
Imho this is a non-issue. Python's max-function isn't limited to numerical values, but can consume iterables of anything with a defined order, i.e., things that implement the appropriate hooks in the Python data model. For such inputs, returning anything but an error (or the optionally provided default value) doesn't make much sense.
[ Parent
| on HN ]
There are no comments on this comment yet.