Re:What's New in Python 3.12
by ddejohn on Thursday October 19, 2023 @05:14PM
(#37948813)
You're right. Python is pass by reference and it's the reference being changed, not the object. This is what happens when you read code on the internet after drinks.
This isn't like C++ with its intrusive `=`.