Re: [Tutor] Nested use of replication operator on lists

2018-05-25 Thread Steven D'Aprano
On Thu, May 24, 2018 at 10:33:56PM -0500, boB Stepp wrote: [...] > I am having trouble correlating the behavior of the one-dimensional > case with the two-dimensional case. The result of [1, 2]*3 seems to > be an actual list, not a replication of the references to the items in > the original list,

Re: [Tutor] Nested use of replication operator on lists

2018-05-25 Thread boB Stepp
The subtleties of the interactions between the concepts of references to objects, mutable objects, immutable objects, shallow copy of objects and deep copy of objects continue to surprise me! On Fri, May 25, 2018 at 1:27 AM, Steven D'Aprano wrote: > On Thu, May 24, 2018 at 10:33:56PM -0500, boB S