diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-17 22:18:07 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-12-17 22:18:07 (GMT) |
commit | bb2e9c477d1cfb24f20ff979584af8fdb7b67a57 (patch) | |
tree | 50af81865fa80721b9d8349a5e68fa04dfd868b0 /Objects/bytesobject.c | |
parent | e83f899364607d9c6ca8413f0db6bca6bd39953a (diff) | |
download | cpython-bb2e9c477d1cfb24f20ff979584af8fdb7b67a57.zip cpython-bb2e9c477d1cfb24f20ff979584af8fdb7b67a57.tar.gz cpython-bb2e9c477d1cfb24f20ff979584af8fdb7b67a57.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.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 8e35fa9..b10cb5d 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -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); |