What is the difference between __str__ and __repr__?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Dream Voyager Looping
--
Chapters
00:00 Question
00:24 Accepted answer (Score 3361)
06:17 Answer 2 (Score 761)
06:33 Answer 3 (Score 503)
08:05 Answer 4 (Score 208)
08:39 Thank you
--
Full question
https://stackoverflow.com/questions/1436...
Question links:
[__str__]: https://docs.python.org/3/reference/data...
[__repr__]: https://docs.python.org/3/reference/data...
Accepted answer links:
[Alex]: https://stackoverflow.com/users/95810/al...
[Alex’s post]: https://stackoverflow.com/a/1436756/3798...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #magicmethods #repr
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Dream Voyager Looping
--
Chapters
00:00 Question
00:24 Accepted answer (Score 3361)
06:17 Answer 2 (Score 761)
06:33 Answer 3 (Score 503)
08:05 Answer 4 (Score 208)
08:39 Thank you
--
Full question
https://stackoverflow.com/questions/1436...
Question links:
[__str__]: https://docs.python.org/3/reference/data...
[__repr__]: https://docs.python.org/3/reference/data...
Accepted answer links:
[Alex]: https://stackoverflow.com/users/95810/al...
[Alex’s post]: https://stackoverflow.com/a/1436756/3798...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #magicmethods #repr
#avk47