viable/strict/1789881973: [dynamo] Support delattr on exception attributes (#196722)
- PyTorch: 1228 events in the last 90 days
- PyTorch: 1214th Release in the last 90 days
- Previous: earlier the same day · ciflow/trunk/197767: [UPDATE] Update
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