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

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

Kris Jordan

3 года назад

8,509 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

EEE magic
EEE magic - 07.04.2023 19:40

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?

Ответить
Bareeda Uumaa
Bareeda Uumaa - 05.01.2023 12:21

Your videos are as outstanding as always. Thanks Kris.

Ответить
Greg AP
Greg AP - 20.10.2022 16:39

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

Ответить
valorien
valorien - 23.07.2022 23:35

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.

Ответить
helen lai
helen lai - 27.06.2022 21:17

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

Ответить
Pythonixed
Pythonixed - 03.04.2022 04:01

Nice explanation of repr and magic methods. Thanks!

Ответить
Lil Run
Lil Run - 01.01.2022 09:24

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

Ответить
KANNAL IX-A MSMHSS
KANNAL IX-A MSMHSS - 19.09.2021 08:52

how are you, man!

Ответить