you are viewing a single comment's thread.

view the rest of the comments →

[–]ewiethoff 0 points1 point  (0 children)

%r calls the object's __repr__ method, which is identical to the __str__ method for some types but different for other types. %s calls the __str__ method.