[issue36416] bytes.rpartition bug in online documentation
New submission from PEW's Corner <pewscorner@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@python components: Documentation messages: 338734 nosy: docs@python, pewscorner priority: normal severity: normal status: open title: bytes.rpartition bug in online documentation type: behavior versions: Python 3.7 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue36416> _______________________________________
Karthikeyan Singaravelan <tir.karthi@gmail.com> added the comment: Thanks for the report. Would you like to create a PR for this? The test for this behavior is at https://github.com/python/cpython/blob/3d07c1ee1d2d475b74816117981d6ec752c26... Doc file to be changed : https://github.com/python/cpython/blob/master/Doc/library/stdtypes.rst ---------- nosy: +xtreak versions: +Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue36416> _______________________________________
Change by Serhiy Storchaka <storchaka+cpython@gmail.com>: ---------- keywords: +easy _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue36416> _______________________________________
PEW's Corner <pewscorner@gmail.com> added the comment: 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. ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue36416> _______________________________________
Karthikeyan Singaravelan <tir.karthi@gmail.com> added the comment: You can find more information about the process at https://devguide.python.org/ ---------- _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue36416> _______________________________________
Change by PEW's Corner <pewscorner@gmail.com>: ---------- keywords: +patch pull_requests: +12492 stage: -> patch review _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue36416> _______________________________________
Inada Naoki <songofacandy@gmail.com> added the comment: New changeset efc48701496ef020e896fc6a91af3c0c612ac69a by Inada Naoki (pewscorner) in branch 'master': bpo-36416: Correct bytes.rpartition documentation (GH-12543) https://github.com/python/cpython/commit/efc48701496ef020e896fc6a91af3c0c612... ---------- nosy: +inada.naoki _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue36416> _______________________________________
Change by miss-islington <mariatta.wijaya+miss-islington@gmail.com>: ---------- pull_requests: +12708 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue36416> _______________________________________
miss-islington <mariatta.wijaya+miss-islington@gmail.com> added the comment: New changeset 04b114eede82c7ffd7b3d9b40e8bf707780b022b by Miss Islington (bot) in branch '3.7': bpo-36416: Correct bytes.rpartition documentation (GH-12543) https://github.com/python/cpython/commit/04b114eede82c7ffd7b3d9b40e8bf707780... ---------- nosy: +miss-islington _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue36416> _______________________________________
Change by Inada Naoki <songofacandy@gmail.com>: ---------- resolution: -> fixed stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue36416> _______________________________________
participants (5)
-
Inada Naoki -
Karthikeyan Singaravelan -
miss-islington -
PEW's Corner -
Serhiy Storchaka