[pypy-svn] r56891 - pypy/dist/pypy/interpreter
arigo at codespeak.net
arigo at codespeak.net
Fri Aug 1 13:41:14 CEST 2008
Author: arigo
Date: Fri Aug 1 13:41:13 2008
New Revision: 56891
Modified:
pypy/dist/pypy/interpreter/function.py
Log:
Never crash in __repr__.
Modified: pypy/dist/pypy/interpreter/function.py
==============================================================================
--- pypy/dist/pypy/interpreter/function.py (original)
+++ pypy/dist/pypy/interpreter/function.py Fri Aug 1 13:41:13 2008
@@ -30,7 +30,7 @@
def __repr__(self):
# return "function %s.%s" % (self.space, self.name)
# maybe we want this shorter:
- return "<Function %s>" % self.name
+ return "<Function %s>" % getattr(self, 'name', '?')
def call_args(self, args):
return self.code.funcrun(self, args) # delegate activation to code
More information about the Pypy-commit
mailing list