From: Stefan Behnel Date: Sun, 16 Nov 2008 21:40:36 +0000 (+0100) Subject: crash work-around X-Git-Tag: 0.11-beta~246 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c2921cf55520c9f886fe487fe154fc80601ce0ce;p=cython.git crash work-around --- diff --git a/Cython/Compiler/Visitor.py b/Cython/Compiler/Visitor.py index 491f467b..fd1d516f 100644 --- a/Cython/Compiler/Visitor.py +++ b/Cython/Compiler/Visitor.py @@ -33,7 +33,7 @@ class BasicVisitor(object): pass else: print type(self), type(obj) - if hasattr(self, 'access_path'): + if hasattr(self, 'access_path') and self.access_path: print self.access_path print self.access_path[-1][0].pos print self.access_path[-1][0].__dict__