diff --git a/README.md b/README.md index 0030519..f922564 100644 --- a/README.md +++ b/README.md @@ -2046,15 +2046,15 @@ from array import array ``` ```python - = array('', ) # Array from collection of numbers. - = array('', ) # Copies bytes to array's memory. - = array('', ) # Treats array as a sequence of numbers. -.fromfile(, n_items) # Appends items from the binary file. + = array('', ) # Creates array from collection of numbers. + = array('', ) # Writes passed bytes to array's memory. + = array('', ) # Treats passed array as a sequence of numbers. +.fromfile(, n_items) # Appends file's contents to array's memory. ``` ```python = bytes() # Returns a copy of array's memory. -.write() # Writes array's memory to binary file. +.write() # Writes array's memory to the binary file. ``` diff --git a/index.html b/index.html index dd51771..6efb673 100644 --- a/index.html +++ b/index.html @@ -55,7 +55,7 @@
- +
@@ -1689,13 +1689,13 @@ CompletedProcess(args=['bc', <array> = array('<typecode>', <coll_of_nums>) # Array from collection of numbers. -<array> = array('<typecode>', <bytes>) # Copies bytes to array's memory. -<array> = array('<typecode>', <array>) # Treats array as a sequence of numbers. -<array>.fromfile(<file>, n_items) # Appends items from the binary file. +
<array> = array('<typecode>', <coll_of_nums>)  # Creates array from collection of numbers.
+<array> = array('<typecode>', <bytes>)         # Writes passed bytes to array's memory.
+<array> = array('<typecode>', <array>)         # Treats passed array as a sequence of numbers.
+<array>.fromfile(<file>, n_items)              # Appends file's contents to array's memory.
 
<bytes> = bytes(<array>)                       # Returns a copy of array's memory.
-<file>.write(<array>)                          # Writes array's memory to binary file.
+<file>.write(<array>)                          # Writes array's memory to the binary file.
 

#Memory View

A sequence object that points to the memory of another bytes-like object. Each element can reference a single or multiple consecutive bytes, depending on format. Order and number of elements can be changed with slicing.

<mview> = memoryview(<bytes/bytearray/array>)  # Immutable if bytes is passed, else mutable.
 <obj>   = <mview>[index]                       # Returns int or float. Bytes if format is 'c'.
@@ -2923,7 +2923,7 @@ $ deactivate                # Deactivates the active