Open dmoisset opened 8 years ago
Also, I think itemset
makes sense only on ndarray, not on any ArrayLike given that generic
is immutable
Although it doesn't make sense, itemset IS part of the generic interface. All it does it raise an exception, though.
being in the interface but always failing is essentially indistinguishable in python to not being on the interface, so I think it's a good idea to catch this statically if possible
The current definition should probably use
ShapeType
as an index, and_S
as value. To avoid the ambiguity of the 1 argument/2 argument version, an@overload
definition could be better.