[Numpy-svn] r2806 - in trunk/numpy: dft lib random
numpy-svn at scipy.org
numpy-svn at scipy.org
Wed Jul 12 02:40:09 EDT 2006
Author: oliphant
Date: 2006-07-12 01:39:51 -0500 (Wed, 12 Jul 2006)
New Revision: 2806
Modified:
trunk/numpy/dft/info.py
trunk/numpy/lib/convertcode.py
trunk/numpy/random/info.py
Log:
Remove global symbols from numpy. Remove use of replacetypechars in convertcode.
Modified: trunk/numpy/dft/info.py
===================================================================
--- trunk/numpy/dft/info.py 2006-07-12 06:02:28 UTC (rev 2805)
+++ trunk/numpy/dft/info.py 2006-07-12 06:39:51 UTC (rev 2806)
@@ -27,4 +27,3 @@
"""
depends = ['core']
-global_symbols = ['fft','ifft']
Modified: trunk/numpy/lib/convertcode.py
===================================================================
--- trunk/numpy/lib/convertcode.py 2006-07-12 06:02:28 UTC (rev 2805)
+++ trunk/numpy/lib/convertcode.py 2006-07-12 06:39:51 UTC (rev 2806)
@@ -28,12 +28,13 @@
flatindex_re = re.compile('([.]flat(\s*?[[=]))')
+# Not very safe. Disabled for now..
def replacetypechars(astr):
-# astr = astr.replace("'s'","'h'")
-# astr = astr.replace("'c'","'S1'")
+ astr = astr.replace("'s'","'h'")
+ astr = astr.replace("'c'","'S1'")
astr = astr.replace("'b'","'B'")
astr = astr.replace("'1'","'b'")
-# astr = astr.replace("'w'","'H'")
+ astr = astr.replace("'w'","'H'")
astr = astr.replace("'u'","'I'")
return astr
@@ -90,7 +91,7 @@
import datetime
def fromstr(filestr):
- filestr = replacetypechars(filestr)
+ #filestr = replacetypechars(filestr)
filestr, fromall1 = changeimports(filestr, 'Numeric', 'numpy.oldnumeric')
filestr, fromall1 = changeimports(filestr, 'multiarray',
'numpy.core.multiarray')
Modified: trunk/numpy/random/info.py
===================================================================
--- trunk/numpy/random/info.py 2006-07-12 06:02:28 UTC (rev 2805)
+++ trunk/numpy/random/info.py 2006-07-12 06:39:51 UTC (rev 2806)
@@ -5,7 +5,6 @@
"""
depends = ['core']
-global_symbols = ['rand','randn']
__all__ = [
'beta',
More information about the Numpy-svn
mailing list