[Python-checkins] CVS: python/dist/src/Doc/ext ext.tex,1.83,1.84

M.-A. Lemburg python-dev@python.org
Thu, 21 Sep 2000 14:08:11 -0700


Update of /cvsroot/python/python/dist/src/Doc/ext
In directory slayer.i.sourceforge.net:/tmp/cvs-serv2917/Doc/ext

Modified Files:
	ext.tex 
Log Message:
Special case the "s#" PyArg_Parse() token for Unicode objects:
"s#" will now return a pointer to the default encoded string data
of the Unicode object instead of a pointer to the raw UTF-16
data.

The latter is still available via PyObject_AsReadBuffer().

Index: ext.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ext/ext.tex,v
retrieving revision 1.83
retrieving revision 1.84
diff -C2 -r1.83 -r1.84
*** ext.tex	2000/09/08 22:54:53	1.83
--- ext.tex	2000/09/21 21:08:08	1.84
***************
*** 693,700 ****
  pointer to a character string, the second one its length.  In this
  case the Python string may contain embedded null bytes.  Unicode
! objects and all other read buffer compatible objects pass back a
! reference to the raw internal data representation. In case of Unicode
! objects the pointer points to a null-terminated buffer of 16-bit
! Py_UNICODE (UTF-16) data.
  
  \item[\samp{z} (string or \code{None}) {[char *]}]
--- 693,700 ----
  pointer to a character string, the second one its length.  In this
  case the Python string may contain embedded null bytes.  Unicode
! objects pass back a pointer to the default encoded string version of the
! object if such a conversion is possible. All other read buffer
! compatible objects pass back a reference to the raw internal data
! representation.
  
  \item[\samp{z} (string or \code{None}) {[char *]}]