mirror of https://github.com/python/cpython
Issue #11231: Fix bytes and bytearray docstrings
Patch written by Brice Berna.
This commit is contained in:
parent
e83f899364
commit
bb2e9c477d
|
@ -80,6 +80,7 @@ Andrew Bennetts
|
||||||
Andy Bensky
|
Andy Bensky
|
||||||
Michel Van den Bergh
|
Michel Van den Bergh
|
||||||
Julian Berman
|
Julian Berman
|
||||||
|
Brice Berna
|
||||||
Eric Beser
|
Eric Beser
|
||||||
Steven Bethard
|
Steven Bethard
|
||||||
Stephen Bevan
|
Stephen Bevan
|
||||||
|
|
|
@ -2797,18 +2797,16 @@ bytearray_methods[] = {
|
||||||
PyDoc_STRVAR(bytearray_doc,
|
PyDoc_STRVAR(bytearray_doc,
|
||||||
"bytearray(iterable_of_ints) -> bytearray\n\
|
"bytearray(iterable_of_ints) -> bytearray\n\
|
||||||
bytearray(string, encoding[, errors]) -> bytearray\n\
|
bytearray(string, encoding[, errors]) -> bytearray\n\
|
||||||
bytearray(bytes_or_bytearray) -> mutable copy of bytes_or_bytearray\n\
|
bytearray(bytes_or_buffer) -> mutable copy of bytes_or_buffer\n\
|
||||||
bytearray(memory_view) -> bytearray\n\
|
bytearray(int) -> bytes array of size given by the parameter initialized with null bytes\n\
|
||||||
|
bytearray() -> empty bytes array\n\
|
||||||
\n\
|
\n\
|
||||||
Construct an mutable bytearray object from:\n\
|
Construct an mutable bytearray object from:\n\
|
||||||
- an iterable yielding integers in range(256)\n\
|
- an iterable yielding integers in range(256)\n\
|
||||||
- a text string encoded using the specified encoding\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\
|
- any object implementing the buffer API.\n\
|
||||||
\n\
|
- an integer");
|
||||||
bytearray(int) -> bytearray\n\
|
|
||||||
\n\
|
|
||||||
Construct a zero-initialized bytearray of the given length.");
|
|
||||||
|
|
||||||
|
|
||||||
static PyObject *bytearray_iter(PyObject *seq);
|
static PyObject *bytearray_iter(PyObject *seq);
|
||||||
|
|
|
@ -2721,13 +2721,14 @@ PyDoc_STRVAR(bytes_doc,
|
||||||
"bytes(iterable_of_ints) -> bytes\n\
|
"bytes(iterable_of_ints) -> bytes\n\
|
||||||
bytes(string, encoding[, errors]) -> bytes\n\
|
bytes(string, encoding[, errors]) -> bytes\n\
|
||||||
bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer\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\
|
\n\
|
||||||
Construct an immutable array of bytes from:\n\
|
Construct an immutable array of bytes from:\n\
|
||||||
- an iterable yielding integers in range(256)\n\
|
- an iterable yielding integers in range(256)\n\
|
||||||
- a text string encoded using the specified encoding\n\
|
- a text string encoded using the specified encoding\n\
|
||||||
- a bytes or a buffer object\n\
|
- any object implementing the buffer API.\n\
|
||||||
- any object implementing the buffer API.");
|
- an integer");
|
||||||
|
|
||||||
static PyObject *bytes_iter(PyObject *seq);
|
static PyObject *bytes_iter(PyObject *seq);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue