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: rsplit introduces spurious CR
Type: Stage:
Components: None Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, rhettinger, rprosser
Priority: normal Keywords:

Created on 2005-06-21 07:47 by rprosser, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
crbug.txt rprosser, 2005-06-21 07:47 Script portion with work-around
Messages (4)
msg25601 - (view) Author: Richard Prosser (rprosser) Date: 2005-06-21 07:47
Using ActiveState Python 2.4.1 on "SunOS svpadm03 
5.6 Generic_105181-25 sun4u sparc SUNW,Ultra-60", it 
seems that the new rsplit() adds a '\r' character at the 
end of the field. This was not present in the original 
data, so I suspect that there is a bug.

Attachment gives partial script - I cannot upload the 
whole file for copyright reasons. However the process 
should be pretty clear, and it should be possible to 
arrange a test on a local machine.


msg25602 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-06-21 07:58
Logged In: YES 
user_id=80475

Please submit a test case reduced to one line:
"somestring".rsplit()  # introduces \r not present in input
msg25603 - (view) Author: Richard Prosser (rprosser) Date: 2005-06-23 09:15
Logged In: YES 
user_id=599403

False alarm - Unix issues CR/LF sequence with a tty 
appararently, and I am using ssh with pexpect. I have 
confirmed this via 'od'. See http://pexpect.sourceforge.net/ for 
details.

Apologies.
msg25604 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-06-23 10:03
Logged In: YES 
user_id=1188172

Closing as Invalid, then.
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 42105
2005-06-21 07:47:52rprossercreate