Equivalent of Perl chomp?
Paul Watson
pwatson at mail.com
Wed Jan 30 04:32:02 EST 2002
More information about the Python-list mailing list
Wed Jan 30 04:32:02 EST 2002
- Previous message (by thread): Equivalent of Perl chomp?
- Next message (by thread): Equivalent of Perl chomp?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
What are some ways in Python to produce the equivalent of the Perl chomp function? The chomp function in Perl removes the "newline" byte(s). I know about rstrip and strip. I want to maintain any existing non-newline whitespace that exists at the end of the string.
- Previous message (by thread): Equivalent of Perl chomp?
- Next message (by thread): Equivalent of Perl chomp?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list