instance attribute

An attribute stored on one instance, usually set as self.name = value, so each instance has its own copy.

In more detail

Assigning to self.x in any method creates or updates it for that instance only. Reading self.x falls back to the class attribute if the instance has none.

Related terms

Taught in

References

Certification courses