Python Language Get array buffer information through buffer_info() method


Example

This method provides you the array buffer start address in memory and number of elements in array. Here is an example:

my_array = array('i', [1,2,3,4,5])
my_array.buffer_info()
(33881712, 5)