# HG changeset patch # User Mike Miller # Date 1469822987 25200 # Node ID 2cb6e2824776d34dd8fd4dc7a43f7557d15548e1 # Parent 8c543a859ba28f0cb7dfca9ae1e38698754269d3 Support indexed assignment of pyobjects into builtin array types * @pyobject/subsasgn.m: If the object being indexed is not a pyobject, pass arguments along to the builtin subsasgn. diff -r 8c543a859ba2 -r 2cb6e2824776 @pyobject/subsasgn.m --- a/@pyobject/subsasgn.m Fri Jul 29 13:03:29 2016 -0700 +++ b/@pyobject/subsasgn.m Fri Jul 29 13:09:47 2016 -0700 @@ -30,6 +30,16 @@ function r = subsasgn(x, idx, rhs) + if (nargin != 3) + print_usage (); + endif + + ## If rhs is a pyobject but x is not, dispatch to the builtin subsasgn + if (! isa (x, "pyobject")) + r = builtin ("subsasgn", x, idx, rhs); + return; + endif + switch idx.type case "." assert (ischar (idx.subs))