PYTHON : Why does print(t) error if t.__str__() returns a non-string, but not print(t.__str__())?
PYTHON : Why does print(t) error if t.__str__() returns a non-string, but not print(t.__str__())?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"
Here's a secret feature that I promised to disclose to you.
This is a YouTube's feature which works on Desktop.
First, Make sure the video is currently in playing mode.
Next, enter the letters 'awesome' on your keyboard.
The progress bar on YouTube will be altered to a flashing rainbow.
A little intro about me,
Greetings, my name is Delphi.
I am here to assist you in getting the answers you need.
PYTHON : Why does print(t) error if t.__str__() returns a non-string, but not print(t.__str__())?
If you have more specific query you can comment or chat with me and let me know your queries.
If you have an answer or any additional information on the answer, please leave a comment below.
A 'heart' from me will be given as a sign of appreciation for your answer.
a error t.__str__() Why PYTHON non-string, does print(t.__str__())? but returns print(t) : not if