Python - OOP - Magic or Dunder methods [3.7]

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

your videos deserve way more views. thanks for the help!

devongrey
Автор

why use str or repr why couldn't you just make a normal method that isnt dunder, would it still work? when should you use str or repr or is that ones own personal preference

srali