xnd-project/libxnd

Silent assignment error

Closed this issue · 1 comments

from xnd import xnd

x0 = xnd([[0, 1, 2], [3, 4, 5]])
x1 = xnd([[6, 7, 8], [9, 10, 11]])
x0[:, :] = x1
print(x0)
# works fine: xnd([[6, 7, 8], [9, 10, 11]], type='2 * 3 * int64')

x0 = xnd([[0, 1, 2], [3, 4, 5]])
x1 = xnd([6, 7, 8, 9, 10, 11])
x0[:, :] = x1
print(x0)
# no error message: xnd([[0, 1, 2], [3, 4, 5]], type='2 * 3 * int64')
skrah commented

Thanks, should be fixed in fd738bc .