diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-28 21:31:19 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-28 21:31:19 +0000 |
commit | ffe633bdf4ca09b5ad084998c441dc1d109d2fcc (patch) | |
tree | 0a9a1783352d09fd0cee36df36e3ac303db77a69 /numpy/core/arrayprint.py | |
parent | 4776dffd495de69f71c90ed13115c711e05ebde0 (diff) | |
download | numpy-ffe633bdf4ca09b5ad084998c441dc1d109d2fcc.tar.gz |
.ravel and .reshape always return views and raise ValueError if that is impossible. The functions ravel and reshape return views or copies if the view is not possible.
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r-- | numpy/core/arrayprint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py index a649d0211..fd33a44ac 100644 --- a/numpy/core/arrayprint.py +++ b/numpy/core/arrayprint.py @@ -16,6 +16,7 @@ import sys import numeric as _gen import numerictypes as _nt import umath as _uf +from oldnumeric import ravel _nc = _gen # The following functions are emergency substitutes for numeric functions @@ -138,7 +139,7 @@ def _array2string(a, max_line_width, precision, suppress_small, separator=' ', data = _leading_trailing(a) else: summary_insert = "" - data = a.ravel() + data = ravel(a) try: format_function = a._format |