Re:Why Do Python Lists Multiply Oddly? Exploring the CPython...
by layer8 on Tuesday April 09, 2024 @06:12AM
(#39977904)
The * operator could be defined to use a deepcopy operation, but isn’t, presumably for efficiency reasons. This has little to do with order of evaluation.
Alternatively, the issue is that Python does not distinguish between value and reference types.
Alternatively, the issue is that Python does not distinguish between value and reference types.