__str__ and __repr__ - Intermediate Python Programming p.24
Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=vOqrMPcF7xQ
Welcome to part 24 of the intermediate Python programming tutorial series. In this tutorial, we're going to cover two new special methods: __str__ and __repr__.
There are many different explanations about what __str__ and __repr__ are each used for. The main confusion, at least from what I can tell, is where and how __repr__ actually differs from __str__.
https://pythonprogramming.net
https://twitter.com/sentdex
https://www.facebook.com/pythonprogramming.net/
https://plus.google.com/+sentdex
Other Videos By sentdex
Tags:
__str__
__repr__
str
repr
python
python 3
tutorial
intermediate
introduction
programming
Object Oriented Programming
Class
OOP