3 ms·
+ doesn't call __str__ internally. e.g the following is an error. a = 4 "a: " + a You have to do: "a: " + str(a)
by richardwhiuk 11y ago
+ doesn't call __str__ internally.
e.g the following is an error.
a = 4
"a: " + a
You have to do:
"a: " + str(a)