summaryrefslogtreecommitdiff
path: root/docs/library/array.rst
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2025-02-04 12:20:38 +1100
committerDamien George <damien@micropython.org>2025-02-11 16:17:00 +1100
commit0a55f1f40c8a0a69f34f550d45138d9ba7a1d467 (patch)
treeeb1afdebdb07ff23e3c1ee6dbf6a60695087ea47 /docs/library/array.rst
parentbab099826e956bcc000b8a3c45b144c97d870fe2 (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.rst4
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.