This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: readline()/readlines()
Type: Stage:
Components: Interpreter Core Versions: Python 2.2
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: fullsail, gvanrossum
Priority: normal Keywords:

Created on 2003-06-27 12:26 by fullsail, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
is_it_a_bug.zip fullsail, 2003-06-27 12:26
Messages (3)
msg16624 - (view) Author: Raise L. Sail (fullsail) Date: 2003-06-27 12:26
At first, I can not speak English very well ,so follow
my description may be not very nicety.

I use python for processing text file(It may contain 
many chinese characters). readline()/readlines() , I use 
them many times, but I found they's result read from hte 
text file is different from text.

I uploaded the files can omit this bug.

I modified the data file, beacause of It contain some 
user information of my work.

run s.py, then view txt\ADSL5.txt, you can 
understand......

and:
My platform:
Win98SE + Python 2.2.2 + PythonWin for py22
Win2000Pro+SP3 + Python 2.2.3 + PythonWin for py22
msg16625 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2003-06-30 15:55
Logged In: YES 
user_id=6380

Sorry, I don't understand the problem.

Can you explain what in the output file you expected to be
different?

Can you perhaps create a smaller example that shows the
difference between what you expected and what you got?
msg16626 - (view) Author: Raise L. Sail (fullsail) Date: 2004-11-14 06:06
Logged In: YES 
user_id=398208

So sorry, I found this is bug of my program, not of Python
itself.
History
Date User Action Args
2022-04-10 16:09:27adminsetgithub: 38721
2003-06-27 12:26:32fullsailcreate