Adrian Seyboldt
unread,Mar 14, 2012, 7:26:53 AM3/14/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
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