diff options
| author | Angus Gratton <angus@redyak.com.au> | 2025-02-04 12:20:38 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-02-11 16:17:00 +1100 |
| commit | 0a55f1f40c8a0a69f34f550d45138d9ba7a1d467 (patch) | |
| tree | eb1afdebdb07ff23e3c1ee6dbf6a60695087ea47 /docs/library/array.rst | |
| parent | bab099826e956bcc000b8a3c45b144c97d870fe2 (diff) | |
docs/reference: Add strings vs bytes to speed optimisation tips.
Also add some additional context links, suggestions for alternative
classes, etc.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'docs/library/array.rst')
| -rw-r--r-- | docs/library/array.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/library/array.rst b/docs/library/array.rst index f417a7046..957260c2c 100644 --- a/docs/library/array.rst +++ b/docs/library/array.rst @@ -19,6 +19,10 @@ Classes array are given by *iterable*. If it is not provided, an empty array is created. + In addition to the methods below, array objects also implement the buffer + protocol. This means the contents of the entire array can be accessed as raw + bytes via a `memoryview` or other interfaces which use this protocol. + .. method:: append(val) Append new element *val* to the end of array, growing it. |
