|
|
|
|
|
by orf
2288 days ago
|
|
It doesn’t and shouldn’t have a sort method because python prefers functions that act on objects rather than methods attached to objects. That’s why you use “len(obj)” rather than “obj.len()”, and why you use “sorted(dict_keys)” rather than adding a “sort” method to random iterables. |
|