1# test MicroPython-specific features of array.array 2try: 3 import uarray as array 4except ImportError: 5 try: 6 import array 7 except ImportError: 8 print("SKIP") 9 raise SystemExit 10 11# arrays of objects 12a = array.array('O') 13a.append(1) 14print(a[0]) 15 16# arrays of pointers 17a = array.array('P') 18a.append(1) 19print(a[0]) 20