Python Magic Methods | Differences between __str__ to __repr__

Опубликовано: 29 Ноябрь 2020
на канале: JimShapedCoding
20,599
958

Python _str_ _repr_
#Python

👍Welcome to my Python Intermediate videos Series

In this video, we will understand what magic methods are in python, but we will try to focus on two of them. Since str and repr are responsible for similar behaviors, then it is important to mark the differences between those.

Connect with me with:
Instagram:   / jimshapedcoding  
E-mail: jimshapedcoding@gmail.com
Twitter :   / jimshapedcoding  
Discord :   / discord  

👍 Subscribe for more Python tutorials like this:
   / @jimshapedcoding  
🔥 Comment below on other topics you want to see tutorials next on my Channel.
-----------------------------------------------

My website:
🔥 http://www.jimshapedcoding.com

🎥 My YouTube Gear 🎥
Microphone ( Rode NT-Mini) : https://amzn.to/3bDqEer
Keyboard ( Razer Blackwidow Green Switch ) : https://amzn.to/3bExDnu
Mouse ( Razer LanceHead ) : https://amzn.to/3if0JuV
Lights ( Neewer 2-Pack Dimmable ): https://amzn.to/3oFN1DP

Timeline for the video:
00:00 - 01:34 - What are magic methods in Python?
01:35 - 05:33 - Creating _str_ in your Classes.
05:34 - 07:38 - How is _repr_ different from _str_ ?
07:39 - 10:27 - Best practices for _str_ and _repr_
10:28 - 14:02 - Examples in Python Shell


На этой странице сайта вы можете посмотреть видео онлайн Python Magic Methods | Differences between __str__ to __repr__ длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь JimShapedCoding 29 Ноябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 20,599 раз и оно понравилось 958 зрителям. Приятного просмотра!