mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #11231: Fix bytes and bytearray docstrings
Patch written by Brice Berna.
This commit is contained in:
commit
e010fc029d
3 changed files with 10 additions and 10 deletions
|
@ -2890,18 +2890,16 @@ bytearray_methods[] = {
|
|||
PyDoc_STRVAR(bytearray_doc,
|
||||
"bytearray(iterable_of_ints) -> bytearray\n\
|
||||
bytearray(string, encoding[, errors]) -> bytearray\n\
|
||||
bytearray(bytes_or_bytearray) -> mutable copy of bytes_or_bytearray\n\
|
||||
bytearray(memory_view) -> bytearray\n\
|
||||
bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer\n\
|
||||
bytearray(int) -> bytes array of size given by the parameter initialized with null bytes\n\
|
||||
bytearray() -> empty bytes array\n\
|
||||
\n\
|
||||
Construct an mutable bytearray object from:\n\
|
||||
- an iterable yielding integers in range(256)\n\
|
||||
- a text string encoded using the specified encoding\n\
|
||||
- a bytes or a bytearray object\n\
|
||||
- a bytes or a buffer object\n\
|
||||
- any object implementing the buffer API.\n\
|
||||
\n\
|
||||
bytearray(int) -> bytearray\n\
|
||||
\n\
|
||||
Construct a zero-initialized bytearray of the given length.");
|
||||
- an integer");
|
||||
|
||||
|
||||
static PyObject *bytearray_iter(PyObject *seq);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue