mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
sort of backport 66038 by aliasing PyObject_Bytes to PyObject_Str
This commit is contained in:
parent
e39be53c3c
commit
14cb6bcf2b
3 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue