Four options for ๐๐จ๐ฉ๐ฒ in Python:
๐๐๐๐๐๐ ๐๐๐๐ข
๐๐๐ ๐๐๐๐๐๐_๐๐๐๐ข(๐):
... ๐ = ๐.๐๐๐๐ข()
... ๐[๐ท] = ๐[๐ท].๐๐๐๐ข()
... ๐๐๐๐๐๐ ๐
๐ = [[๐ท, ๐ธ], [๐น, ๐บ]]
๐๐ท = ๐
๐๐ธ = ๐.๐๐๐๐ข()
๐๐น = ๐๐๐๐๐๐_๐๐๐๐ข(๐)
๐๐บ = ๐๐๐๐ข.๐๐๐๐๐๐๐๐ข(๐)
c1, ๐๐ฌ๐ฌ๐ข๐ ๐ง๐ฆ๐๐ง๐ญ: nothing is copied, everything is shared
c2, ๐ฌ๐ก๐๐ฅ๐ฅ๐จ๐ฐ ๐๐จ๐ฉ๐ฒ: first value is copied, underlying is shared
c3, ๐๐ฎ๐ฌ๐ญ๐จ๐ฆ ๐๐จ๐ฉ๐ฒ: you decide what is copied and shared
c4, ๐๐๐๐ฉ ๐๐จ๐ฉ๐ฒ: everything is copied, nothing is shared
see: https://memory-graph.com/#breakpoints=8&continues=1&play
#Python #programming #memory_graph