Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r54751:290bebb4a80b
Date: 2012-04-25 17:56 +0200
http://bitbucket.org/pypy/pypy/changeset/290bebb4a80b/
Log: avoid obscure crashes with "has no attribute name"
diff --git a/pypy/rpython/lltypesystem/lltype.py
b/pypy/rpython/lltypesystem/lltype.py
--- a/pypy/rpython/lltypesystem/lltype.py
+++ b/pypy/rpython/lltypesystem/lltype.py
@@ -1167,7 +1167,7 @@
try:
return self._lookup_adtmeth(field_name)
except AttributeError:
- raise AttributeError("%r instance has no field %r" %
(self._T._name,
+ raise AttributeError("%r instance has no field %r" % (self._T,
field_name))
def __setattr__(self, field_name, val):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit