Refactor setitem_helper to use assign() instead of duplicating its logic.
This makes the code a little shorter and a little more readable.
Authored by: david_costanzo 2026-06-02
Parent: [r6255]
Child: [r6257]