Issue 36416: bytes.rpartition bug in online documentation (original) (raw)
The online Python 3 documentation for bytes.rpartition and bytearray.rpartition (https://docs.python.org/3/library/stdtypes.html#bytes.rpartition) incorrectly states:
"If the separator is not found, return a 3-tuple containing a copy of the original sequence, followed by two empty bytes or bytearray objects."
This seems to have been copied without modification from bytes.partition where the statement is correct. The statement for rpartition should be:
"If the separator is not found, return a 3-tuple containing two empty bytes or bytearray objects, followed by a copy of the original sequence."
OK, I can give it a try. I need to read up on the procedures for doing so, first, though, so it may take a while.