Python - OOP - Observer Pattern

preview_player
Показать описание
In this video I demo you how to implement and use the so called 'Observer' pattern in python.

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

Thanks for the good video. I wish the notified object also could trigger a callback function with information from that object in the callback parameter.

rolfjohansen
Автор

I think you made a mistake in the Observer class in notify method you printing a variable named topic that dont exist
make other instances of the Topic class with other names and you will see

mhdimhdi
visit shbcf.ru