sys.setdefaultencoding (2.0b1)

Donn Cave donn at u.washington.edu
Tue Sep 12 18:11:31 EDT 2000


I see codecs.c has gone to some trouble to defer character encoding
setup until it's actually required for something, but it's required
rather early in the process anyway when site.py calls
sys.setdefaultencoding("ascii")

If I strike that line from site.py, startup time goes down by about
a third.

Is that too simple a fix?  Does setdefaultencoding("ascii") do something
important?

	Donn Cave, donn at u.washington.edu



More information about the Python-list mailing list