[issue36416] bytes.rpartition bug in online documentation

PEW's Corner report at bugs.python.org
Sun Mar 24 10:23:47 EDT 2019


New submission from PEW's Corner <pewscorner at gmail.com>:

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."

----------
assignee: docs at python
components: Documentation
messages: 338734
nosy: docs at python, pewscorner
priority: normal
severity: normal
status: open
title: bytes.rpartition bug in online documentation
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36416>
_______________________________________


More information about the Python-bugs-list mailing list