[Python-checkins] python/dist/src/Include unicodeobject.h,2.36,2.36.10.1

doerwalter@sourceforge.net doerwalter@sourceforge.net
Mon, 22 Apr 2002 11:42:46 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv23553/Include

Modified Files:
      Tag: release22-maint
	unicodeobject.h 
Log Message:
Backport checkin:
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.36.10.1
diff -C2 -d -r2.36 -r2.36.10.1
*** unicodeobject.h	19 Oct 2001 02:01:31 -0000	2.36
--- unicodeobject.h	22 Apr 2002 18:42:44 -0000	2.36.10.1
***************
*** 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 =============================================== */