[pypy-svn] r48013 - pypy/dist/pypy/lang/smalltalk
arigo at codespeak.net
arigo at codespeak.net
Fri Oct 26 01:09:11 CEST 2007
Author: arigo
Date: Fri Oct 26 01:09:11 2007
New Revision: 48013
Modified:
pypy/dist/pypy/lang/smalltalk/shadow.py
Log:
Attach information to MethodNotFound just for debugging.
Modified: pypy/dist/pypy/lang/smalltalk/shadow.py
==============================================================================
--- pypy/dist/pypy/lang/smalltalk/shadow.py (original)
+++ pypy/dist/pypy/lang/smalltalk/shadow.py Fri Oct 26 01:09:11 2007
@@ -179,7 +179,8 @@
while selector not in look_in_shadow.methoddict:
look_in_shadow = look_in_shadow.s_superclass
if look_in_shadow is None:
- raise MethodNotFound
+ # attach information on the exception, for debugging.
+ raise MethodNotFound(self, selector)
return look_in_shadow.methoddict[selector]
def installmethod(self, selector, method):
More information about the Pypy-commit
mailing list