]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
backport gvanrossum's patch:
authorAnthony Baxter <anthonybaxter@gmail.com>
Thu, 18 Apr 2002 05:16:37 +0000 (05:16 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Thu, 18 Apr 2002 05:16:37 +0000 (05:16 +0000)
commit0bc13db82f076a5a92e8cb4b9c5f2fae34df78d5
treef930c07d2ad6a26f4f3e67b73239dc6d00d22917
parenta3597faa104a72a7e791cc92bbad7ecc2cfa3c96
backport gvanrossum's patch:

Partially implement SF feature request 444708.

Add optional arg to string methods strip(), lstrip(), rstrip().
The optional arg specifies characters to delete.

Also for UserString.

Still to do:

- Misc/NEWS
- LaTeX docs (I did the docstrings though)
- Unicode methods, and Unicode support in the string methods.

Original patches were:
python/dist/src/Objects/stringobject.c:2.156
Objects/stringobject.c