diff options
| author | Marc-André Lemburg <mal@egenix.com> | 2001-01-17 17:09:53 +0000 |
|---|---|---|
| committer | Marc-André Lemburg <mal@egenix.com> | 2001-01-17 17:09:53 +0000 |
| commit | ad7c98e264bbc9c84e911417c8770f6e95ffb794 (patch) | |
| tree | 7586edae78b019c6c2db46861da762083e0c3c8a /Include/abstract.h | |
| parent | d5c43065d5aa7bd8b9ec67525bd01d2c09a7759f (diff) | |
| download | cpython-git-ad7c98e264bbc9c84e911417c8770f6e95ffb794.tar.gz | |
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/abstract.h')
| -rw-r--r-- | Include/abstract.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Include/abstract.h b/Include/abstract.h index 9c18bbd42f..2c0e73508d 100644 --- a/Include/abstract.h +++ b/Include/abstract.h @@ -271,6 +271,18 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/ */ + /* Implemented elsewhere: + + PyObject *PyObject_Unicode(PyObject *o); + + Compute the unicode representation of object, o. Returns the + unicode representation on success, NULL on failure. This is + the equivalent of the Python expression: unistr(o).) + + Called by the unistr() built-in function. + + */ + DL_IMPORT(int) PyCallable_Check(PyObject *o); /* |
