def __getattr__(self, attrname): try: attr = getattr(self._ary, attrname) return attr except AttributeError as e: raise_from(AttributeError("Wrapped array has no attribute '%s'" % attrname), e)