import numpy as np a = np.zeros(4, dtype=np.dtype('|S4', align=True)) print a.flags['ALIGNED'] # -- should be True Works with 1.8 but not with 1.9
import numpy as np
a = np.zeros(4, dtype=np.dtype('|S4', align=True))
print a.flags['ALIGNED'] # -- should be True
Works with 1.8 but not with 1.9