Add a ReturnConvention for getattrs that can C++ throw
Otherwise callers have no way of knowing if an exception might occur in the rewritten code, and they'd have to conservatively not rewrite those cases (such as 3-arg getattr). Well, previously getattr() wasn't doing that, so it would rewrite itself correctly for a descriptor that is not throwing now, but would start throwing later (those exceptions would get propagated instead of being caught by getattr).
Showing
Please register or sign in to comment