Mercurial > pytave
changeset 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 | a140160b2319 |
children | 6f03249847fa |
files | @pyobject/subsref.m |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
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__