[ python-Bugs-1224672 ] rsplit introduces spurious CR
SourceForge.net
noreply at sourceforge.net
Thu Jun 23 12:03:14 CEST 2005
Bugs item #1224672, was opened at 2005-06-21 09:47
Message generated for change (Settings changed) made by birkenfeld
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1224672&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Richard Prosser (rprosser)
Assigned to: Nobody/Anonymous (nobody)
Summary: rsplit introduces spurious CR
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-06-23 12:03
Message:
Logged In: YES
user_id=1188172
Closing as Invalid, then.
----------------------------------------------------------------------
Comment By: Richard Prosser (rprosser)
Date: 2005-06-23 11:15
Message:
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.
----------------------------------------------------------------------
Comment By: Raymond Hettinger (rhettinger)
Date: 2005-06-21 09:58
Message:
Logged In: YES
user_id=80475
Please submit a test case reduced to one line:
"somestring".rsplit() # introduces \r not present in input
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1224672&group_id=5470
More information about the Python-bugs-list
mailing list