Hello,

When creating a Matrix from another one, no new object is created

m1 = Matrix(2, 2, range(4))
m2 = Matrix(m1)

m1 is m2

returns True, so changing m1 will also change m2. I know I can use 
m1.clone(), but
since SomeClass() usually creates a new object, this took me rather by 
surprise.

Is this intended behavior?


Adrian Seyboldt

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sympy/-/kmGB44EhawEJ.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to