[Patches] [Patch #103029] Implementation of chomp() on string objects.

noreply@sourceforge.net noreply@sourceforge.net
Thu, 28 Dec 2000 09:52:09 -0800


Patch #103029 has been updated. 

Project: python
Category: core (C code)
Status: Rejected
Submitted by: bjorn_pettersen
Assigned to : nobody
Summary: Implementation of chomp() on string objects.

Follow-Ups:

Date: 2000-Dec-28 09:52
By: gvanrossum

Comment:
Rejecting this now.  Comments on python-dev are mostly negative.

Note that there's also splitlines().
-------------------------------------------------------

Date: 2000-Dec-28 07:02
By: gvanrossum

Comment:
Hm. s.rstrip() does the same thing (plus strips trailing whitespace, which
is rarely a problem).  Do you really need this function?  If so, please
don't call it chomp() -- that's a Perl-ism that makes no sense to anyone
else.

*If* (and I say *if*) this is accepted, we would require a Unicode version
and documentation as well.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=103029&group_id=5470