HF RL Explorer

Task: Implement Recursive getattr and setattr for Nested Objects

Task: Implement Recursive getattr and setattr for Nested Objects: a task in Terminal-Lego-15k (Harbor dataset). In Python, the built-in getattr() and setattr() functions do not support dot-notation for accessing or modifying nested object attributes. For example, setattr(obj, 'pet.name', 'Sparky')…

The task

In Python, the built-in `getattr()` and `setattr()` functions do not support dot-notation for accessing or modifying nested object attributes. For example, `setattr(obj, 'pet.name', 'Sparky')` creates a new attribute literally named `'pet.name'` on the object instead of setting the `name` attribute on the `pet`…

Part of PrimeIntellect/Terminal-Lego-15k.