GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — gh-94808: Cover `str.rsplit` for UCS1, UCS2 or UCS4 by sobolevn · Pull Request #98228 · python/cpython Conversation
|
|
Issue about |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| string_tests.CommonTest.test_rsplit(self) | ||
| # test mixed kinds | ||
| for left, right in ('ba', '\u0101\u0100', '\U00010301\U00010300'): | ||
| for left, right in ('ba', 'юё', '\u0101\u0100', '\U00010301\U00010300'): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Does this cover all of the UCS-1, UCS-2, and UCS-4 branches? Might be worth commenting on which versions are covered by which characters.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Other places don't have comments about it, so I didn't bother adding one as well.
I believe that this does cover all unicode kinds: ba', 'юё' are UCS-1, \u0101\u0100 is UCS-2 and \U00010301\U00010300 is UCS-4
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @sobolevn for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-98291 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…8228) (cherry picked from commit b7dd2ca) Co-authored-by: Nikita Sobolev <[email protected]>
…#98291) gh-94808: Cover `str.rsplit` for UCS1, UCS2 or UCS4 (GH-98228) (cherry picked from commit b7dd2ca) Co-authored-by: Nikita Sobolev <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.