[Python-checkins] python/dist/src/Include stringobject.h,2.33,2.34

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 24 May 2002 12:02:00 -0700


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

Modified Files:
	stringobject.h 
Log Message:
- A new type object, 'string', is added.  This is a common base type
  for 'str' and 'unicode', and can be used instead of
  types.StringTypes, e.g. to test whether something is "a string":
  isinstance(x, string) is True for Unicode and 8-bit strings.  This
  is an abstract base class and cannot be instantiated directly.


Index: stringobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/stringobject.h,v
retrieving revision 2.33
retrieving revision 2.34
diff -C2 -d -r2.33 -r2.34
*** stringobject.h	29 Mar 2002 03:29:07 -0000	2.33
--- stringobject.h	24 May 2002 19:01:57 -0000	2.34
***************
*** 40,43 ****
--- 40,44 ----
  } PyStringObject;
  
+ extern DL_IMPORT(PyTypeObject) PyBaseString_Type;
  extern DL_IMPORT(PyTypeObject) PyString_Type;