[Python-checkins] python/dist/src/Include unicodeobject.h,2.36,2.37
doerwalter@sourceforge.net
doerwalter@sourceforge.net
Mon, 22 Apr 2002 10:42:39 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv30740/Include
Modified Files:
unicodeobject.h
Log Message:
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.
Index: unicodeobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/unicodeobject.h,v
retrieving revision 2.36
retrieving revision 2.37
diff -C2 -d -r2.36 -r2.37
*** unicodeobject.h 19 Oct 2001 02:01:31 -0000 2.36
--- unicodeobject.h 22 Apr 2002 17:42:37 -0000 2.37
***************
*** 1041,1044 ****
--- 1041,1051 ----
);
+ /* Externally visible for str.strip(unicode) */
+ extern DL_IMPORT(PyObject *) _PyUnicode_XStrip(
+ PyUnicodeObject *self,
+ int striptype,
+ PyObject *sepobj
+ );
+
/* === Characters Type APIs =============================================== */