[Python-Dev] deleting setdefaultencoding iin site.py is evil

Robert Kern robert.kern at gmail.com
Tue Aug 25 20:10:20 CEST 2009


On 2009-08-25 12:37 PM, Guido van Rossum wrote:
> In retrospect, it should have been called sys._setdefaultencoding().
> That sends an extra signal that it's not meant for general use.

Considering all of the sys._getframe() hacks out there, I suspect that this 
would encourage more abuse of the function than the current situation.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco



More information about the Python-Dev mailing list