Hanif Ariffin and Jeong YunWon
8e920098b2
Fix bytes.isspace ( #5655 )
...
* Fix implementation of bytes.isspace to match the implementation in CPython.
* Fix implementation of bytes.istitle so that test_bigmem now passes.
Also added some extra_test to capture this.
* Fix some clippy issues
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com >
* bytes.istitle returns false when the bytes is empty.
* Fix some edges of istitle with non-alphanumeric characters
* Disable a line because python 3.12 errors on bad escape sequence
* Match CPython's istitle a little closer
* Fix clippy warning
* Rewrite bytes.istitle along _Py_bytes_istitle
The lookahead-based check accepted b"Not--a Titlecase String", which
test_bytes covers. Track whether the previous byte was cased instead.
isspace compares bytes directly rather than converting to char.
Restore the b"omkmok\Xaa" assert: 3.14 reports an invalid escape
sequence as a SyntaxWarning, not an error.
Assisted-by: Claude
---------
Signed-off-by: Hanif Ariffin <hanif.ariffin.4326@gmail.com >
Co-authored-by: Jeong YunWon <jeong@youknowone.org >
2026-08-03 17:52:42 +09:00
..
2025-05-12 14:20:01 +09:00
2025-12-12 22:46:39 +09:00
2020-09-13 06:58:57 +09:00
2025-05-12 14:20:01 +09:00
2020-09-13 06:58:57 +09:00
2020-09-13 06:58:57 +09:00
2020-09-13 06:58:57 +09:00
2020-09-13 06:58:57 +09:00
2020-09-13 06:58:57 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-11-15 23:09:31 +09:00
2025-05-12 14:20:01 +09:00
2025-12-12 22:46:39 +09:00
2025-12-12 22:46:39 +09:00
2026-03-19 09:48:42 +09:00
2025-05-12 14:20:01 +09:00
2026-01-17 19:21:10 +09:00
2026-01-17 19:21:11 +09:00
2026-08-03 17:52:42 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2026-06-26 18:22:08 +09:00
2026-07-09 21:42:08 +09:00
2025-05-12 14:20:01 +09:00
2025-06-22 00:00:07 +09:00
2025-05-12 14:20:01 +09:00
2026-05-01 19:45:28 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-07-07 19:02:37 +09:00
2026-01-17 19:21:11 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2020-09-13 06:58:57 +09:00
2026-02-28 10:34:38 +09:00
2026-07-09 21:42:08 +09:00
2026-07-29 20:27:59 +09:00
2025-12-28 16:27:32 +09:00
2025-05-12 14:20:01 +09:00
2026-04-27 21:41:40 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2026-08-02 21:21:11 +09:00
2025-05-12 14:20:01 +09:00
2026-01-29 16:48:02 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2026-03-16 11:58:40 +09:00
2026-04-30 02:09:16 +00:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-12-25 14:54:44 +09:00
2026-05-01 19:44:42 +09:00
2025-12-12 22:46:39 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2026-05-03 00:16:27 +09:00
2026-01-09 21:31:21 +09:00
2025-05-12 14:20:01 +09:00
2026-04-24 13:30:02 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2026-06-14 17:47:42 +09:00
2026-05-09 18:03:21 +00:00
2022-05-08 04:19:38 +09:00
2020-09-13 06:58:57 +09:00
2025-05-12 14:20:01 +09:00
2026-07-08 15:21:41 +09:00
2025-05-12 14:20:01 +09:00
2026-01-06 12:16:51 +09:00
2025-05-12 14:20:01 +09:00
2026-01-17 00:00:16 +09:00
2026-01-17 19:21:11 +09:00
2025-05-12 14:20:01 +09:00
2026-01-17 19:21:11 +09:00
2025-12-12 22:46:39 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2020-09-13 06:58:57 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-12-12 22:46:39 +09:00
2020-09-13 06:58:57 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2022-07-15 15:46:41 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2022-05-04 02:54:59 +09:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2025-12-12 22:46:39 +09:00
2025-05-12 14:20:01 +09:00
2026-06-11 13:38:07 +09:00
2025-05-12 14:20:01 +09:00
2026-02-08 13:58:30 +00:00
2022-10-17 13:45:15 +09:00
2025-05-12 14:20:01 +09:00
2023-05-23 16:43:52 +09:00
2025-12-28 14:48:27 +09:00
2026-07-25 19:58:05 +09:00
2025-12-12 22:46:39 +09:00
2025-12-12 22:46:39 +09:00
2025-12-12 22:46:39 +09:00
2026-08-01 11:35:37 +09:00
2026-07-08 12:42:10 +09:00
2026-07-08 12:42:10 +09:00
2026-07-20 15:21:42 +09:00
2025-12-12 22:46:39 +09:00
2025-12-12 22:46:39 +09:00
2025-05-12 14:20:01 +09:00
2026-04-30 02:09:16 +00:00
2025-05-12 14:20:01 +09:00
2025-05-12 14:20:01 +09:00
2026-02-27 16:53:17 +09:00
2025-05-12 14:20:01 +09:00
2026-07-18 16:39:23 +09:00
2026-01-17 19:21:11 +09:00
2026-06-11 13:38:07 +09:00
2025-05-12 14:20:01 +09:00
2025-12-12 22:46:39 +09:00
2025-12-12 22:46:39 +09:00
2026-07-29 20:28:32 +09:00
2020-09-13 06:58:57 +09:00
2025-12-24 14:23:33 +09:00
2025-12-12 22:46:39 +09:00
2026-07-16 17:39:48 +09:00
2025-05-12 14:20:01 +09:00
2026-04-17 18:45:43 +09:00
2026-05-24 13:43:56 +09:00
2025-12-12 22:46:39 +09:00
2026-01-17 19:21:11 +09:00
2026-05-27 16:40:05 +09:00
2026-05-22 20:04:15 +09:00
2025-12-12 22:46:39 +09:00
2026-04-26 12:31:54 +09:00
2025-12-12 22:46:39 +09:00
2025-05-12 14:20:01 +09:00
2025-12-12 22:46:39 +09:00
2021-11-02 18:28:02 -04:00
2026-07-08 15:21:41 +09:00
2026-07-08 15:21:41 +09:00
2026-07-08 15:21:41 +09:00
2026-07-08 15:21:41 +09:00
2026-05-25 13:55:32 +09:00
2026-07-29 20:33:32 +09:00
2025-05-12 14:20:01 +09:00
2026-02-05 16:20:22 +09:00
2026-01-17 10:34:53 +00:00
2026-07-07 09:19:25 +09:00
2026-05-22 20:04:15 +09:00
2022-05-04 02:54:59 +09:00
2026-04-13 23:58:58 +09:00
2026-07-13 18:40:18 +09:00
2025-12-12 22:46:39 +09:00
2025-08-08 23:31:12 +09:00
2026-01-17 19:21:11 +09:00
2024-05-27 16:54:56 +09:00
2023-10-22 19:19:05 -07:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2026-07-26 13:49:19 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2026-03-22 17:23:03 +09:00
2022-06-19 22:34:34 +08:00
2022-05-04 02:54:59 +09:00
2023-05-19 14:05:36 -04:00
2025-02-13 14:11:01 +09:00
2022-05-04 02:54:59 +09:00
2026-01-18 01:02:40 +09:00
2025-08-20 14:08:53 +09:00
2026-04-30 02:09:16 +00:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2023-02-13 21:28:19 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2025-08-26 21:48:46 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2026-02-22 19:54:27 +09:00
2026-02-18 00:45:17 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2022-05-04 02:54:59 +09:00
2025-05-12 14:20:01 +09:00
2026-07-23 16:18:09 +09:00
2020-09-13 06:58:57 +09:00