Issue36416
Created on 2019-03-24 14:23 by pewscorner, last changed 2022-04-11 14:59 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 12543 | merged | pewscorner, 2019-03-25 22:35 | |
| PR 12781 | merged | miss-islington, 2019-04-11 10:13 | |
| Messages (6) | |||
|---|---|---|---|
| msg338734 - (view) | Author: PEW's Corner (pewscorner) * | Date: 2019-03-24 14:23 | |
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." |
|||
| msg338735 - (view) | Author: Karthikeyan Singaravelan (xtreak) * ![]() |
Date: 2019-03-24 14:46 | |
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/3d07c1ee1d2d475b74816117981d6ec752c26c23/Lib/test/test_bytes.py#L655 Doc file to be changed : https://github.com/python/cpython/blob/master/Doc/library/stdtypes.rst |
|||
| msg338747 - (view) | Author: PEW's Corner (pewscorner) * | Date: 2019-03-24 19:56 | |
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. |
|||
| msg338750 - (view) | Author: Karthikeyan Singaravelan (xtreak) * ![]() |
Date: 2019-03-24 20:08 | |
You can find more information about the process at https://devguide.python.org/ |
|||
| msg339929 - (view) | Author: Inada Naoki (methane) * ![]() |
Date: 2019-04-11 06:58 | |
New changeset efc48701496ef020e896fc6a91af3c0c612ac69a by Inada Naoki (pewscorner) in branch 'master': bpo-36416: Correct bytes.rpartition documentation (GH-12543) https://github.com/python/cpython/commit/efc48701496ef020e896fc6a91af3c0c612ac69a |
|||
| msg339954 - (view) | Author: miss-islington (miss-islington) | Date: 2019-04-11 10:18 | |
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/04b114eede82c7ffd7b3d9b40e8bf707780b022b |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:12 | admin | set | github: 80597 |
| 2019-04-11 10:20:02 | methane | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2019-04-11 10:18:50 | miss-islington | set | nosy:
+ miss-islington messages: + msg339954 |
| 2019-04-11 10:13:03 | miss-islington | set | pull_requests: + pull_request12708 |
| 2019-04-11 06:58:49 | methane | set | nosy:
+ methane messages: + msg339929 |
| 2019-03-25 22:35:35 | pewscorner | set | keywords:
+ patch stage: patch review pull_requests: + pull_request12492 |
| 2019-03-24 20:08:49 | xtreak | set | messages: + msg338750 |
| 2019-03-24 19:56:41 | pewscorner | set | messages: + msg338747 |
| 2019-03-24 15:14:18 | serhiy.storchaka | set | keywords: + easy |
| 2019-03-24 14:46:58 | xtreak | set | nosy:
+ xtreak messages:
+ msg338735 |
| 2019-03-24 14:23:47 | pewscorner | create | |
