Kaydet (Commit) 14cb6bcf authored tarafından Benjamin Peterson's avatar Benjamin Peterson

sort of backport 66038 by aliasing PyObject_Bytes to PyObject_Str

üst e39be53c
......@@ -130,6 +130,14 @@ Object Protocol
by the :keyword:`print` statement.
.. cfunction:: PyObject* PyObject_Bytes(PyObject *o)
.. index:: builtin: bytes
Compute a bytes representation of object *o*. In 2.x, this is just a alias
for :cfunc:`PyObject_Str`.
.. cfunction:: PyObject* PyObject_Unicode(PyObject *o)
.. index:: builtin: unicode
......
......@@ -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
......
......@@ -29,6 +29,11 @@ Core and Builtins
- Added warnings on the use of ``__getslice__``, ``__setslice__``, or
``__delslice__``.
C-API
-----
- Aliased PyObject_Bytes to PyObject_Str.
Library
-------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment