Message128741
> 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.
|
... |
|
Date |
User |
Action |
Args |
2011-02-17 16:55:39 | vstinner | set | recipients:
+ vstinner, pitrou, docs@python |
2011-02-17 16:55:39 | vstinner | set | messageid: <1297961739.93.0.395063422111.issue11231@psf.upfronthosting.co.za> |
2011-02-17 16:55:39 | vstinner | link | issue11231 messages |
2011-02-17 16:55:39 | vstinner | create | |
|