Ian Bicking: the old part of his blog

Re: The Illusive setdefaultencoding

In python 2.1, setdefaultencoding doesn't work any later than that - because some aspect of encoding is already nailed into sys.stdin/sys.stdout etc. Later versions of python incrementally improved this....

Comment on The Illusive setdefaultencoding
by Mark Eichin


I don't understand this at all. There is a function sys.setdefaultencoding, but site.py deletes the function ?

# Ciezarowe