Equivalent of Perl chomp?

Paul Watson pwatson at mail.com
Thu Jan 31 20:50:05 EST 2002


I hope they do implement your request, Simon.  At the same time,
string.chomp should be made an alias for string.rstrip(os.linesep).

The worst thing this would do might be to let Perl programmers get into
Python a little faster and easier.  Is there some evil there that I am
missing?


"Simon Brunning" <SBrunning at trisystems.co.uk> wrote in message
news:mailman.1012483859.14169.python-list at python.org...
> > From: Paul Rubin [SMTP:phr-n2002a at nightsong.com]
> > "Paul Watson" <pwatson at mail.com> writes:
> > > Is chomp worth considering as an addition to the string functions?
> >
> > I think it should be added.  I constantly find myself wanting it.
>
> It's in as a feature request -
>
<http://sourceforge.net/tracker/index.php?func=detail&aid=444708&group_id=54
> 70&atid=355470> - and has been for some time. Near as dammit, anyway.
>
> Cheers,
> Simon Brunning
> TriSystems Ltd.
> sbrunning at trisystems.co.uk
>
>
>
>
> -----------------------------------------------------------------------
> The information in this email is confidential and may be legally
privileged.
> It is intended solely for the addressee. Access to this email by anyone
else
> is unauthorised. If you are not the intended recipient, any disclosure,
> copying, distribution, or any action taken or omitted to be taken in
> reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
> accept liability for statements made which are clearly the senders own.
>





More information about the Python-list mailing list