New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Bytes and Byte Array Methods doc #47470
Comments
Lib Ref/Built-in Types/Sequence Types/Bytes and Byte Array Methods The following set/frozenset and dict sections repeat (and for dicts, Similarly there is no mention here of the difference between bytes and (Sets/frozenset have the opposite problem in that Built-in Functions "The bytes and bytearray types have an additional class method: I don't think the line 'Example:' is needed. A thread today on the Py3 lists again brought up the issue that just as
I suggest adding at the end: >>> a, b = b'abc', bytes((1,2,3))
>>> a,b
(b'abc', b'\x01\x02\x03')
>>> tuple(a), tuple(b)
((97, 98, 99), (1, 2, 3))
>>> c = bytearray(a)
>>> c, tuple(c)
(bytearray(b'abc'), (97, 98, 99))
" |
Right -- I need to reorganize that section a bit more, and this is on
The difference is mentioned under the "sequence types" heading.
Agreed.
Yep.
The same section that documents the bytes/bytearray difference also already Committed changes as r64627. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: