mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user