Copy a string: Difference between revisions

→‎[[Python]]: --- comment on object "interning"
(distinguish between copying a reference vs. a the contents)
(→‎[[Python]]: --- comment on object "interning")
Line 208:
</pre>
 
SomeAs a result of object "interning" some strings likesuch as the empty string and single character strings like 'a' stillmay returnbe references to the same object evenregardless of copying. This can potentially happen with thisany Python immutable object and should be of no consequence to any proper methodcode.
 
==[[Ruby]]==
Anonymous user