[pypy-commit] pypy default: ups, fix the translation
fijal
noreply at buildbot.pypy.org
Wed Sep 12 20:27:51 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r57300:2d3d1f5167f5
Date: 2012-09-12 20:27 +0200
http://bitbucket.org/pypy/pypy/changeset/2d3d1f5167f5/
Log: ups, fix the translation
diff --git a/pypy/module/micronumpy/__init__.py b/pypy/module/micronumpy/__init__.py
--- a/pypy/module/micronumpy/__init__.py
+++ b/pypy/module/micronumpy/__init__.py
@@ -1,21 +1,9 @@
from pypy.interpreter.mixedmodule import MixedModule
-class PyPyModule(MixedModule):
- interpleveldefs = {
- 'debug_repr': 'interp_extras.debug_repr',
- 'remove_invalidates': 'interp_extras.remove_invalidates',
- 'set_invalidation': 'interp_extras.set_invalidation',
- }
- appleveldefs = {}
-
class Module(MixedModule):
applevel_name = '_numpypy'
- submodules = {
- 'pypy': PyPyModule
- }
-
interpleveldefs = {
'ndarray': 'interp_numarray.W_NDimArray',
'dtype': 'interp_dtype.W_Dtype',
diff --git a/pypy/module/micronumpy/interp_extras.py b/pypy/module/micronumpy/interp_extras.py
deleted file mode 100644
--- a/pypy/module/micronumpy/interp_extras.py
+++ /dev/null
@@ -1,19 +0,0 @@
-from pypy.interpreter.gateway import unwrap_spec
-from pypy.module.micronumpy.interp_numarray import BaseArray, get_numarray_cache
-
-
- at unwrap_spec(array=BaseArray)
-def debug_repr(space, array):
- return space.wrap(array.find_sig().debug_repr())
-
- at unwrap_spec(array=BaseArray)
-def remove_invalidates(space, array):
- """ Array modification will no longer invalidate any of it's
- potential children. Use only for performance debugging
- """
- del array.invalidates[:]
- return space.w_None
-
- at unwrap_spec(arg=bool)
-def set_invalidation(space, arg):
- get_numarray_cache(space).enable_invalidation = arg
More information about the pypy-commit
mailing list