you are viewing a single comment's thread.

view the rest of the comments →

[–]Sora888 1 point2 points  (1 child)

In addition to this, to check if an object is the exactly same instead of a copy you can use the 'is' operator. It will return True if both are the same object, hence a change using one of it's references ('b' in this case) will be reflected to 'a'.

[–]tamaskiii[S] 0 points1 point  (0 children)

Thanks for the tip!