summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/misc.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-05 01:52:55 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-05 01:52:55 +0000
commit65343e533fbf10a5f93970497065478e24ee6238 (patch)
treedc0d6510d62983cfb041a4ad257c2973dbf01983 /numpy/oldnumeric/misc.py
parent9d8e2024ff9014fa2fd9a29812cec615dff6feb9 (diff)
downloadnumpy-65343e533fbf10a5f93970497065478e24ee6238.tar.gz
Fix-up oldnumeric compatibility layer.
Diffstat (limited to 'numpy/oldnumeric/misc.py')
-rw-r--r--numpy/oldnumeric/misc.py39
1 files changed, 38 insertions, 1 deletions
diff --git a/numpy/oldnumeric/misc.py b/numpy/oldnumeric/misc.py
index d6361ef4c..ee0c0e168 100644
--- a/numpy/oldnumeric/misc.py
+++ b/numpy/oldnumeric/misc.py
@@ -1,3 +1,40 @@
+# Functions that already have the correct syntax or miscellaneous functions
-__all__ = ['load', 'sort', 'copy_reg', 'clip', 'putmask', 'Unpickler', 'rank', 'sign', 'shape', 'types', 'array', 'allclose', 'size', 'nonzero', 'asarray', 'reshape', 'argmax', 'choose', 'swapaxes', 'array_str', 'pi', 'ravel', 'math', 'compress', 'concatenate', 'pickle_array', 'around', 'trace', 'vdot', 'transpose', 'array2string', 'diagonal', 'searchsorted', 'put', 'fromfunction', 'copy', 'resize', 'array_repr', 'e', 'argmin', 'StringIO', 'pickle', 'average', 'arange', 'argsort', 'convolve', 'fromstring', 'indices', 'loads', 'Pickler', 'where', 'dot']
+__all__ = ['load', 'sort', 'copy_reg', 'clip', 'putmask', 'Unpickler', 'rank',
+ 'sign', 'shape', 'types',
+ 'argmax', 'choose', 'swapaxes', 'array_str',
+ 'pi', 'math', 'compress', 'concatenate'
+ 'around', 'vdot', 'transpose', 'array2string', 'diagonal',
+ 'searchsorted', 'put', 'fromfunction', 'copy', 'resize',
+ 'array_repr', 'e', 'argmin', 'StringIO', 'pickle', 'average',
+ 'argsort', 'convolve', 'loads',
+ 'Pickler', 'dot']
+
+import types
+import StringIO
+import pickle
+import math
+import copy
+import copy_reg
+from pickle import load, loads
+
+from numpy import sort, clip, putmask, rank, sign, shape, allclose, size,\
+ argmax, choose, swapaxes, array_str, array_repr, argmin, e, pi, \
+ fromfunction, resize, around, compress, concatenate, vdot, transpose, \
+ diagonal, searchsorted, put, average, argsort, convolve, dot
+
+from array_printer import array2string
+
+
+class Unpickler(pickle.Unpickler):
+ def __init__(self, *args, **kwds):
+ raise NotImplemented
+ def load_array(self):
+ raise NotImplemented
+
+class Pickler(pickle.Pickler):
+ def __init__(self, *args, **kwds):
+ raise NotImplemented
+ def save_array(self, object):
+ raise NotImplemented