> if hasattr(sys, "setdefaultencoding"): > + sys._setdefaultencoding = sys.setdefaultencoding > del sys.setdefaultencoding Ah, so you didn't want to rename the function. I agree that this would not break backwards compatibility. I guess the basic objection remains: making it so would make _setdefaultencoding a supported feature, which would then mean that we should fix all the bugs that it causes - when we already know (because we thought many years about this) that it is not possible to implement setdefaultencoding correctly and efficiently (so the current implementation is only efficient, but not correct). Regards, Martin
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