SyntaxFix
Write A Post
Hire A Developer
Questions
str(object) will do the trick.
str(object)
If you want to alter the way object is stringified, define __str__(self) method for object's class. Such method has to return str or unicode object.
__str__(self)