Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment:

I cannot say if this new set of function is desirable in python, but I know 
that 
I already needed this feature sometimes.
It's very easy to write in python code, though:

def rstrips(s, suffix):
    if suffix and s.endswith(suffix):
        s = s[:-len(suffix)]
    return s

About the patch:
- there is a reference leak in string_strips: lstripped must be decref'd
- this both-ends function seems less useful: prefixes are often different from 
suffixes.

----------
nosy: +amaury.forgeotdarc

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4541>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to