STINNER Victor <victor.stinner@haypocalc.com> added the comment:
These are AFAIR the same.
So the docstring should also maybe be updated too: $ python
help(bytes) Help on class bytes in module builtins:
class bytes(object) | bytes(iterable_of_ints) -> bytes | bytes(string, encoding[, errors]) -> bytes | bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer | bytes(memory_view) -> bytes | | Construct an immutable array of bytes from: | - an iterable yielding integers in range(256) | - a text string encoded using the specified encoding | - a bytes or a buffer object | - any object implementing the buffer API. | ... ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue11231> _______________________________________