From eb0b978055402ff5cfa87ae99ab478090bbeee11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 12 Mar 2020 04:29:45 +0100 Subject: [PATCH] Array --- README.md | 3 ++- index.html | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5267761..91436d5 100644 --- a/README.md +++ b/README.md @@ -1983,8 +1983,9 @@ Array ```python from array import array - = array('', ) # Array from coll. of numbers. + = array('', ) # Array from collection of numbers. = array('', ) # Array from bytes object. + = array('', ) # Treats array as a sequence of numbers. = bytes() # Or: .tobytes() ``` diff --git a/index.html b/index.html index 7e5d926..496a19c 100644 --- a/index.html +++ b/index.html @@ -1758,8 +1758,9 @@ db = connector.connect(host=<str>, user=<str>, password=<str>,

#Array

List that can only hold numbers of a predefined type. Available types and their sizes in bytes are listed above.

from array import array
-<array> = array('<typecode>', <collection>)    # Array from coll. of numbers.
+<array> = array('<typecode>', <collection>)    # Array from collection of numbers.
 <array> = array('<typecode>', <bytes>)         # Array from bytes object.
+<array> = array('<typecode>', <array>)         # Treats array as a sequence of numbers.
 <bytes> = bytes(<array>)                       # Or: <array>.tobytes()