diff options
author | Walter Dörwald <walter@livinglogic.de> | 2002-04-22 17:42:37 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2002-04-22 17:42:37 (GMT) |
commit | de02bcb2659af6acb1d44ba61c0bcf7b2d53a6ed (patch) | |
tree | bcb24d906dccf9dfd69b2f1eb69c911d68cdba45 /Include/unicodeobject.h | |
parent | a7cc43b9e8b55223ad6b711488fbe8c10df6b5c2 (diff) | |
download | cpython-de02bcb2659af6acb1d44ba61c0bcf7b2d53a6ed.zip cpython-de02bcb2659af6acb1d44ba61c0bcf7b2d53a6ed.tar.gz cpython-de02bcb2659af6acb1d44ba61c0bcf7b2d53a6ed.tar.bz2 |
Apply patch diff.txt from SF feature request
http://www.python.org/sf/444708
This adds the optional argument for str.strip
to unicode.strip too and makes it possible
to call str.strip with a unicode argument
and unicode.strip with a str argument.
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r-- | Include/unicodeobject.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 368a212..103649d 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -1040,6 +1040,13 @@ extern DL_IMPORT(int) PyUnicode_Contains( PyObject *element /* Element string */ ); +/* Externally visible for str.strip(unicode) */ +extern DL_IMPORT(PyObject *) _PyUnicode_XStrip( + PyUnicodeObject *self, + int striptype, + PyObject *sepobj + ); + /* === Characters Type APIs =============================================== */ /* These should not be used directly. Use the Py_UNICODE_IS* and |