Author: Philip Jenvey <[email protected]>
Branch:
Changeset: r63106:a271c0002bba
Date: 2013-04-06 14:59 -0700
http://bitbucket.org/pypy/pypy/changeset/a271c0002bba/
Log: fix the maximum recursion depth RuntimeErrors under 2.6: avoid
hasattr/__getattr__ crazyness on uninitialized FixedSizeArrays
diff --git a/rpython/rtyper/lltypesystem/lltype.py
b/rpython/rtyper/lltypesystem/lltype.py
--- a/rpython/rtyper/lltypesystem/lltype.py
+++ b/rpython/rtyper/lltypesystem/lltype.py
@@ -503,7 +503,7 @@
return obj
def __init__(self, OF, length, **kwds):
- if hasattr(self, '_name'):
+ if '_name' in self.__dict__:
assert self.OF == OF
assert self.length == length
return
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit