# How to iterate numpy array (of tuples) in list manner

I am getting an error TypeError: Iterator operand or requested dtype holds references, but the REFS_OK flag was not enabled when iterating numpy array of tuples as below: import numpy as np tmp = np.empty((), dtype=object) tmp[()] = (0, 0) arr = np.full(10, tmp, dtype=object) for a, b in np.nditer(arr): print(a, b) How to fix… Read More How to iterate numpy array (of tuples) in list manner