[Guido van Rossum] > OTOH what then to do with _sort_repr -- make it a class var or an > instance var? Setting a class var in a standard library class is like playing with a global variable with all the attendent problems. Senario... I want my sets sorted, but I import some library that uses sets of complex numbers for internal purposes. Or (slightly more plausible) I want my sets UNsorted, but I use some library whose author counted on the string output being sorted (ok... the author shouldn't have depended on it because of the existance of the rarely used class variable, but even non-experts write libraries using the standard library). -- Michael Chermside
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4