Re:Why Do Python Lists Multiply Oddly? Exploring the CPython...
by dragonwriter on Tuesday April 09, 2024 @12:34PM
(#39981148)
As a pure implementation detail, IIRC, I think small integers and maybe True/False/None are values in CPython but logically its all references.
I can't think of anything that's a value? At least since Java, the idea of "everything is an object" seems pretty dominant in most languages.
There are a few immutable types, like ints, strings and tuples, but you still refer to them by reference.