Python language basics 27: value and reference equality basics
July 5, 2015 Leave a comment
Introduction
In the previous post we started discussing the most important cornerstone of object-oriented languages, i.e. objects. We saw how every variable assignment created an object reference in memory with a key, a value and a pointer which points from the key to the value. We also discussed what happens in memory when assigning a value to a variable.
In this post we’ll go through the absolute basics of equality in Python. The notions of value and reference equality are closely related to objects.