+ 3
Have you ever tried printing an object? You only get its location in memory. __repr__ allows you to make a string representation that gets printed instead whenever you want to print the object. With it you could print the contents of the object for example.
9th Jul 2016, 11:29 AM
Gershon Fosu
Gershon Fosu - avatar