← Back to events
ActiveAIRelease

viable/strict/1789881973: [dynamo] Support delattr on exception attributes (#196722)

Photo: PyTorch Releases

What happened

Dynamo already models special BaseException attributes like args , __traceback__ , __cause__ , and __context__ , including the errors CPython raises when code tries to delete them. However, delattr(exc, name) on those attributes was not routed through that existing logic, so Dynamo reported it as unsupported. This change sends exception __delattr__ calls for modeled attributes through the same path used by the exist…

Summary assembled by rule from the sources below

Why it's spreading

Sources