Mercurial > pytave
diff @pyobject/subsref.m @ 317:461f333daf67
Fix multi-indexing conversion to tuple
* @pyobject/subsref.m: Fix indexing.
author | Colin Macdonald <cbm@m.fsf.org> |
---|---|
date | Wed, 10 Aug 2016 00:46:53 -0700 |
parents | 6bba42371afa |
children | 1231dc878600 |
line wrap: on
line diff
--- a/@pyobject/subsref.m Tue Aug 09 21:51:28 2016 -0700 +++ b/@pyobject/subsref.m Wed Aug 10 00:46:53 2016 -0700 @@ -67,9 +67,7 @@ elseif (isscalar (t.subs)) ind = t.subs{1}; else - ## workaround bug: we get list of list instead of list - # ind = pycall ("tuple", t.subs); - ind = pycall (pyeval ("lambda x: tuple(x[0])"), t.subs); + ind = pycall ("tuple", t.subs); endif gi = pycall ("getattr", x, "__getitem__"); # x.__getitem__