diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-26 17:08:40 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-26 17:08:40 (GMT) |
commit | 14cb6bcf2ba953735ec1ef622f8ff8e23db1f326 (patch) | |
tree | 6db192685c7b876eb3ebeebee8d5cffae0daa7fc /Include | |
parent | e39be53c3cbdd2b623065e802e72a90d95f0bb31 (diff) | |
download | cpython-14cb6bcf2ba953735ec1ef622f8ff8e23db1f326.zip cpython-14cb6bcf2ba953735ec1ef622f8ff8e23db1f326.tar.gz cpython-14cb6bcf2ba953735ec1ef622f8ff8e23db1f326.tar.bz2 |
sort of backport 66038 by aliasing PyObject_Bytes to PyObject_Str
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 4fb8a90..b02689c 100644 --- a/Include/object.h +++ b/Include/object.h @@ -458,6 +458,7 @@ PyAPI_FUNC(void) _PyObject_Dump(PyObject *); PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *); PyAPI_FUNC(PyObject *) _PyObject_Str(PyObject *); PyAPI_FUNC(PyObject *) PyObject_Str(PyObject *); +#define PyObject_Bytes PyObject_Str #ifdef Py_USING_UNICODE PyAPI_FUNC(PyObject *) PyObject_Unicode(PyObject *); #endif |