Re:Writing Python like it's Rust
by ptx on Sunday May 21, 2023 @09:14AM
(#36020547)
Even setting the sort order aside, just the fact that it both returns the sorted array and also sorts it in-place is not great. I prefer Python's distinction between sorted (returning a sorted copy) and list.sort (sorting in place and returning nothing).
[ Parent
| on HN ]
There are no comments on this comment yet.