summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-12-17 22:18:43 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-12-17 22:18:43 (GMT)
commite010fc029daa0a445c9d7ab78d4cd4f12b42a991 (patch)
treecf1495de94655ba1fa018e6d0bdd57e24a50d529 /Objects/bytesobject.c
parent25ec056cc2bab9d0dd6f7665911f246e491744c5 (diff)
parentbb2e9c477d1cfb24f20ff979584af8fdb7b67a57 (diff)
downloadcpython-e010fc029daa0a445c9d7ab78d4cd4f12b42a991.zip
cpython-e010fc029daa0a445c9d7ab78d4cd4f12b42a991.tar.gz
cpython-e010fc029daa0a445c9d7ab78d4cd4f12b42a991.tar.bz2
Issue #11231: Fix bytes and bytearray docstrings
Patch written by Brice Berna.
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 88411b7..9cd16f6 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -2732,13 +2732,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);