[pypy-svn] r39687 - pypy/dist/pypy/rpython
fijal at codespeak.net
fijal at codespeak.net
Fri Mar 2 15:41:16 CET 2007
Author: fijal
Date: Fri Mar 2 15:41:14 2007
New Revision: 39687
Modified:
pypy/dist/pypy/rpython/extfunc.py
Log:
Make it a bit more general
Modified: pypy/dist/pypy/rpython/extfunc.py
==============================================================================
--- pypy/dist/pypy/rpython/extfunc.py (original)
+++ pypy/dist/pypy/rpython/extfunc.py Fri Mar 2 15:41:14 2007
@@ -79,9 +79,11 @@
FunEntry.__name__ = function.func_name
def is_external(func):
- if getattr(func.value._callable, 'suggested_primitive', False):
+ if hasattr(func, 'value'):
+ func = func.value
+ if getattr(func._callable, 'suggested_primitive', False):
return True
- if hasattr(func.value, '_entry'):
- if isinstance(func.value._entry, ExtFuncEntry):
+ if hasattr(func, '_entry'):
+ if isinstance(func._entry, ExtFuncEntry):
return True
return False
More information about the pypy-svn
mailing list