Differences between __repr__ vs __str__ in Python



This content originally appeared on Real Python and was authored by Real Python


This content originally appeared on Real Python and was authored by Real Python


Print Share Comment Cite Upload Translate Updates
APA

Real Python | Sciencx (2024-09-12T17:00:00+00:00) Differences between __repr__ vs __str__ in Python. Retrieved from https://www.scien.cx/2024/09/12/differences-between-__repr__-vs-__str__-in-python/

MLA
" » Differences between __repr__ vs __str__ in Python." Real Python | Sciencx - Thursday September 12, 2024, https://www.scien.cx/2024/09/12/differences-between-__repr__-vs-__str__-in-python/
HARVARD
Real Python | Sciencx Thursday September 12, 2024 » Differences between __repr__ vs __str__ in Python., viewed ,<https://www.scien.cx/2024/09/12/differences-between-__repr__-vs-__str__-in-python/>
VANCOUVER
Real Python | Sciencx - » Differences between __repr__ vs __str__ in Python. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/12/differences-between-__repr__-vs-__str__-in-python/
CHICAGO
" » Differences between __repr__ vs __str__ in Python." Real Python | Sciencx - Accessed . https://www.scien.cx/2024/09/12/differences-between-__repr__-vs-__str__-in-python/
IEEE
" » Differences between __repr__ vs __str__ in Python." Real Python | Sciencx [Online]. Available: https://www.scien.cx/2024/09/12/differences-between-__repr__-vs-__str__-in-python/. [Accessed: ]
rf:citation
» Differences between __repr__ vs __str__ in Python | Real Python | Sciencx | https://www.scien.cx/2024/09/12/differences-between-__repr__-vs-__str__-in-python/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.