xnd-project / libxnd

Subsumed into xnd
https://xnd.io/
BSD 3-Clause "New" or "Revised" License
80 stars 12 forks source link

Silent assignment error #32

Closed davidbrochart closed 5 years ago

davidbrochart commented 5 years ago
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 5 years ago

Thanks, should be fixed in fd738bcb0effdeca7a83bc622cdd3b4efd0f3b42 .