Re: [Python-3000] infinite recursion with python -v

2007-08-09 Thread Guido van Rossum
I've checked a band-aid fix for this (r56878). The band-aid works by pre-importing the latin-1 codec (and also the utf-8 codec, just to be sure) *before* setting sys.stdout and sys.stderr (this happens in site.py, in installnewio()). This is a horrible hack though, and only works because, as long

[Python-3000] infinite recursion with python -v

2007-08-07 Thread Neal Norwitz
The wiki seems to be done, so sorry for the spam. python -v crashes due to infinite recursion (well, it tried to be infinite until it got a stack overflow :-) The problem seems to be that Lib/encodings/latin_1.py is loaded, but it tries to be converted to latin_1, so it tries to load the module,