[Python-checkins] r84455 - in python/branches/py3k: Include/unicodeobject.h Objects/unicodeobject.c

victor.stinner python-checkins at python.org
Fri Sep 3 18:18:00 CEST 2010


Author: victor.stinner
Date: Fri Sep  3 18:18:00 2010
New Revision: 84455

Log:
Rename PyUnicode_strdup() to PyUnicode_AsUnicodeCopy()


Modified:
   python/branches/py3k/Include/unicodeobject.h
   python/branches/py3k/Objects/unicodeobject.c

Modified: python/branches/py3k/Include/unicodeobject.h
==============================================================================
--- python/branches/py3k/Include/unicodeobject.h	(original)
+++ python/branches/py3k/Include/unicodeobject.h	Fri Sep  3 18:18:00 2010
@@ -1607,7 +1607,7 @@
    and raise a MemoryError exception on memory allocation failure, otherwise
    return a new allocated buffer (use PyMem_Free() to free the buffer). */
 
-PyAPI_FUNC(Py_UNICODE*) PyUnicode_strdup(
+PyAPI_FUNC(Py_UNICODE*) PyUnicode_AsUnicodeCopy(
     PyObject *unicode
     );
 

Modified: python/branches/py3k/Objects/unicodeobject.c
==============================================================================
--- python/branches/py3k/Objects/unicodeobject.c	(original)
+++ python/branches/py3k/Objects/unicodeobject.c	Fri Sep  3 18:18:00 2010
@@ -10015,7 +10015,7 @@
 }
 
 Py_UNICODE*
-PyUnicode_strdup(PyObject *object)
+PyUnicode_AsUnicodeCopy(PyObject *object)
 {
     PyUnicodeObject *unicode = (PyUnicodeObject *)object;
     Py_UNICODE *copy;


More information about the Python-checkins mailing list