O'Reilly logo
  • Chris Kang thinks this is interesting:

__str__

From

Cover of Python Testing with pytest

Note

One that implements this will provide string representation of self. User of the object that has str can use str(object) to get the value from str method.