[pypy-svn] r14463 - pypy/dist/pypy/rpython
pedronis at codespeak.net
pedronis at codespeak.net
Sun Jul 10 04:35:58 CEST 2005
Author: pedronis
Date: Sun Jul 10 04:35:57 2005
New Revision: 14463
Modified:
pypy/dist/pypy/rpython/llinterp.py
Log:
_callable should always be present but can be None
Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py (original)
+++ pypy/dist/pypy/rpython/llinterp.py Sun Jul 10 04:35:57 2005
@@ -166,7 +166,7 @@
array[index] = item
def op_direct_call(self, f, *args):
- has_callable = hasattr(f._obj, '_callable')
+ has_callable = getattr(f._obj, '_callable', None) is not None
if has_callable and getattr(f._obj._callable, 'suggested_primitive', False):
return f._obj._callable(*args)
if hasattr(f._obj, 'graph'):
More information about the Pypy-commit
mailing list