improve slice view (PY-13837) and add logic for ndarray slice evaluation

fix PY-13850 Evaluate list item for octal return SyntaxError
This commit is contained in:
Alexander Marchuk
2014-09-04 19:27:32 +04:00
parent 97c5953602
commit ac9df1d29b
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -439,7 +439,7 @@ class NdArrayResolver:
ret['shape'] = obj.shape
ret['dtype'] = obj.dtype
ret['size'] = obj.size
ret['[0:%s]' % (len(obj))] = {'items' : str(obj)}
ret['[0:%s]' % (len(obj))] = list(obj)
return ret
class NdArrayItemsContainer: pass