Python's Magic Method __repr__ Tutorial - Automagically produce string representations of objects.

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Nice explanation of repr and magic methods. Thanks!

pythonixed
Автор

Your teaching is very gppd and easy to understand, love it!

lilrun
Автор

This is so helpful!! Pls keep uploading new videos :D

helenlai
Автор

Your videos are as outstanding as always. Thanks Kris.

afanoromolyricsofficial
Автор

Thank you for your great video. One thing is confusing for me. You have used f"...." as the string. What type of string is it?

eeemagic
Автор

Understood everything, except what is p0: Point = Point() and p0.x = 1.0.? like what is the Point doing and what is p0.x? so lost

gregap
Автор

You've confused the purpose of dunder repr with that of dunder str.
They are not the same and your usage and explanation of dunder repr here is incorrect.
Best of luck.

valorien