Message 338734 - Python tracker

Message338734

Author pewscorner
Recipients docs@python, pewscorner
Date 2019-03-24.14:23:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1553437427.15.0.469399643284.issue36416@roundup.psfhosted.org>
In-reply-to
Content
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."
History
Date User Action Args
2019-03-24 14:23:47pewscornersetrecipients: + pewscorner, docs@python
2019-03-24 14:23:47pewscornersetmessageid: <1553437427.15.0.469399643284.issue36416@roundup.psfhosted.org>
2019-03-24 14:23:47pewscornerlinkissue36416 messages
2019-03-24 14:23:47pewscornercreate