[pypy-svn] r71773 - pypy/branch/import-fiddle/pypy/module/imp

fijal at codespeak.net fijal at codespeak.net
Fri Mar 5 04:55:11 CET 2010


Author: fijal
Date: Fri Mar  5 04:55:07 2010
New Revision: 71773

Modified:
   pypy/branch/import-fiddle/pypy/module/imp/importing.py
Log:
don't look into some of those functions


Modified: pypy/branch/import-fiddle/pypy/module/imp/importing.py
==============================================================================
--- pypy/branch/import-fiddle/pypy/module/imp/importing.py	(original)
+++ pypy/branch/import-fiddle/pypy/module/imp/importing.py	Fri Mar  5 04:55:07 2010
@@ -147,6 +147,7 @@
 #
 importhook.unwrap_spec = [ObjSpace, str, W_Root, W_Root, W_Root, int]
 
+ at jit.dont_look_inside
 def absolute_import(space, modulename, baselevel, fromlist_w, tentative):
     lock = getimportlock(space)
     lock.acquire_lock()
@@ -345,6 +346,7 @@
     if pkgdir is not None:
         space.setattr(w_mod, w('__path__'), space.newlist([w(pkgdir)]))
 
+ at jit.dont_look_inside
 def load_module(space, w_modulename, find_info, reuse=False):
     if find_info is None:
         return
@@ -428,6 +430,7 @@
         msg = "No module named %s"
         raise operationerrfmt(space.w_ImportError, msg, modulename)
 
+ at jit.dont_look_inside
 def reload(space, w_module):
     """Reload the module.
     The module must have been successfully imported before."""
@@ -625,6 +628,7 @@
     code_w.exec_code(space, w_dict, w_dict)
 
 
+ at jit.dont_look_inside
 def load_source_module(space, w_modulename, w_mod, pathname, source,
                        write_pyc=True):
     """
@@ -724,6 +728,7 @@
                               "Non-code object in %s", cpathname)
     return pycode
 
+ at jit.dont_look_inside
 def load_compiled_module(space, w_modulename, w_mod, cpathname, magic,
                          timestamp, source):
     """



More information about the Pypy-commit mailing list