Small suggestion regarding type errors and subscription

getattr already includes the attribute name in the Exception, is there a reason that getitem could not do the same ?