0
__repr__
According to the official documentation, __repr__() is used to compute an official string representation of an object.. what does official string representation mean ?
3 ответов
+ 2
"official" string representaion means a representation that has all information about the object
0
Scarlet Witch can you give some example ..
0
Python __repr__() function returns the object representation in string format. This method is called when repr() function is invoked on the object.
__repr__ goal is to be unambiguous
https://code.sololearn.com/cgZOJNGcS4Zk/?ref=app