This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients docs@python, pitrou, vstinner
Date 2011-02-17.16:55:39
SpamBayes Score 6.73418e-06
Marked as misclassified No
Message-id <1297961739.93.0.395063422111.issue11231@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
 |  
...
History
Date User Action Args
2011-02-17 16:55:39vstinnersetrecipients: + vstinner, pitrou, docs@python
2011-02-17 16:55:39vstinnersetmessageid: <1297961739.93.0.395063422111.issue11231@psf.upfronthosting.co.za>
2011-02-17 16:55:39vstinnerlinkissue11231 messages
2011-02-17 16:55:39vstinnercreate