mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #11231: Fix bytes and bytearray docstrings
Patch written by Brice Berna.
This commit is contained in:
parent
e83f899364
commit
bb2e9c477d
3 changed files with 10 additions and 10 deletions
|
@ -2721,13 +2721,14 @@ PyDoc_STRVAR(bytes_doc,
|
|||
"bytes(iterable_of_ints) -> bytes\n\
|
||||
bytes(string, encoding[, errors]) -> bytes\n\
|
||||
bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer\n\
|
||||
bytes(memory_view) -> bytes\n\
|
||||
bytes(int) -> bytes object of size given by the parameter initialized with null bytes\n\
|
||||
bytes() -> empty bytes object\n\
|
||||
\n\
|
||||
Construct an immutable array of bytes from:\n\
|
||||
- an iterable yielding integers in range(256)\n\
|
||||
- a text string encoded using the specified encoding\n\
|
||||
- a bytes or a buffer object\n\
|
||||
- any object implementing the buffer API.");
|
||||
- any object implementing the buffer API.\n\
|
||||
- an integer");
|
||||
|
||||
static PyObject *bytes_iter(PyObject *seq);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue