diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-08-17 01:01:14 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-08-17 01:01:14 +0000 |
commit | 9e244f2d5ab9b2a92a46bf8d41daed3258c0f7fb (patch) | |
tree | 72284c77f6fcb294033c1498e46d8e3dbcd15115 /numpy/core/_internal.py | |
parent | bd9dc9ec6a44ad339e6ad8ac7e0b849bcbb496b7 (diff) | |
download | numpy-9e244f2d5ab9b2a92a46bf8d41daed3258c0f7fb.tar.gz |
Fix ambiguity of list data-type objects. Lists are always interpeted as array_descriptor format. Use a comma-separated string for the other approach. Add 'int', 'float', etc. to the sctypeDict so they can be interpreted in strings.
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r-- | numpy/core/_internal.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py index d538743b6..e650be9a0 100644 --- a/numpy/core/_internal.py +++ b/numpy/core/_internal.py @@ -120,7 +120,8 @@ def _split(input): newlist = [] hold = '' - for element in input.split(','): + listinput = input.split(',') + for element in listinput: if hold != '': item = hold + ',' + element else: |