How to get the array start address in memory and the number of elements in array in Python

1 Answer

0 votes
from array import array

int_array = array('i', [0, 23, 65, 12, 48, 99])

# start address in memory and number of elements in array

print(int_array.buffer_info())


'''
run:

(11260936, 6)

'''

 



answered Dec 23, 2017 by avibootz

Related questions

1 answer 284 views
1 answer 281 views
2 answers 378 views
1 answer 247 views
2 answers 225 views
...