John Van Praag added the comment:
According to the documentation of the open function:
errors is an optional string that specifies how encoding and decoding
errors are to be handled–this cannot be used in binary mode. Pass
'strict' to raise a ValueError exception if there is an enco
John Van Praag added the comment:
I just now resubmitted, with a text file and program demonstrating the
problem: Issue9126.
I am new to submitting Python bug reports and I would like to do it
right. I found I could only attach 1 file to the bug report. However, I
had two files: The text file
New submission from John Van Praag :
The declaration errors='replace' works from within IDLE but not at the Windows
command line. I am attaching a program and text file that demonstrate the
problem. The error shows up at the Windows command line as follows:
C:\Users\John\Docume
New submission from John Van Praag :
Platforms:
Windows Vista Ultimate 64 bit
Python v3.1.2
Goal is to read a tab-separated CSV file. Some records have garbage characters
in them.
The following code fragment works when the program is run in IDLE, but fails
when run from the Windows command
New submission from John Van Praag :
The PYTHONSTARTUP environment variable does not work--does not import the
indicated startup file--when IDLE is started under Windows. I have tested under
Windows XP SP2, and under Windows Vista Ultimate 64 bit.
The os.environ variable does list the startup
New submission from John Van Praag :
My platform: Win XP.
Program fibo.py from the tutorial runs correctly in the interpreter.
When I run it from the command line I get the following error:
file "fibo.py" line 6
print(b, end=' ')
^
--
components: Wi