Skip to content

Commit 06dfd4b

Browse files
Docs: Add missing bytearray methods (copy, reverse, resize)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2bf44cb commit 06dfd4b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/builtins/bytes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ The `bytes` type is an immutable sequence of bytes, while `bytearray` is the mut
7575
| `pop(0)` | O(n) | Shift remaining |
7676
| `remove(x)` | O(n) | Search and remove |
7777
| `clear()` | O(n) | Deallocate |
78+
| `copy()` | O(n) | Shallow copy |
79+
| `reverse()` | O(n) | Reverse in-place |
80+
| `resize(n)` | O(n) | Resize to n bytes; may truncate or zero-fill |
7881

7982
## Space Complexity
8083

0 commit comments

Comments
 (0)