syntax for working with the complete functionality available by the underlying hardware that syntaxhowevercan be somewhat cryptic compared to pythonespecially for python programmer who may not be familiar with the ctypes module many of the data types and classes available in python are actually implemented using appropriate types from the language while python does not provide the array structure as part of the language itselfit now includes the ctypes module as part of the python standard library this module provides access to the diverse set of data types available in the language and the complete functionality provided by wide range of libraries the ctypes module provides the capability to create hardware-supported arrays just like the ones used to implement python' stringlisttupleand dictionary collection types but the ctypes module is not meant for everyday use in python programs as it was designed for use by module developers to aide in creating more portable python modules by bridging the gap between python and the language much of the functionality provided by the ctypes module requires some knowledge of the language thusthe technique provided by the module for creating an array should not typically be used directly within python program but we can use it within our array class to provide the functionality defined by the array adt since the details will be hidden within the class creating hardware array the ctypes module provides technique for creating arrays that can store references to python objects the following code segment import ctypes arraytype ctypes py_object slots arraytype(creates an array named slots that contains five elements slots each of which can store reference to an object after the array has been createdthe elements can be accessed using the same integer subscript notation as used with python' own sequence types for the slots arraythe legal range is [ the elements of the array have to be initialized before they can be used if we attempt to read the contents of an element in the slots array before it has been initialized printslots[