summaryrefslogtreecommitdiffstats
path: root/Include/object.h
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2001-01-17 17:09:53 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2001-01-17 17:09:53 (GMT)
commitad7c98e264bbc9c84e911417c8770f6e95ffb794 (patch)
tree7586edae78b019c6c2db46861da762083e0c3c8a /Include/object.h
parentd5c43065d5aa7bd8b9ec67525bd01d2c09a7759f (diff)
downloadcpython-ad7c98e264bbc9c84e911417c8770f6e95ffb794.zip
cpython-ad7c98e264bbc9c84e911417c8770f6e95ffb794.tar.gz
cpython-ad7c98e264bbc9c84e911417c8770f6e95ffb794.tar.bz2
This patch adds a new builtin unistr() which behaves like str()
except that it always returns Unicode objects. A new C API PyObject_Unicode() is also provided. This closes patch #101664. Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
Diffstat (limited to 'Include/object.h')
-rw-r--r--Include/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h
index 0ebe805..515ce12 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -266,6 +266,7 @@ extern DL_IMPORT(PyTypeObject) PyType_Type; /* The type of type objects */
extern DL_IMPORT(int) PyObject_Print(PyObject *, FILE *, int);
extern DL_IMPORT(PyObject *) PyObject_Repr(PyObject *);
extern DL_IMPORT(PyObject *) PyObject_Str(PyObject *);
+extern DL_IMPORT(PyObject *) PyObject_Unicode(PyObject *);
extern DL_IMPORT(int) PyObject_Compare(PyObject *, PyObject *);
extern DL_IMPORT(PyObject *) PyObject_RichCompare(PyObject *, PyObject *, int);
extern DL_IMPORT(int) PyObject_RichCompareBool(PyObject *, PyObject *, int);