Do OO design principles apply to Python?

后端 未结 10 871
伪装坚强ぢ
伪装坚强ぢ 2021-01-30 11:19

It seems like many OO discussions use Java or C# as examples (e.g. Head First Design Patterns).

Do these patterns apply equally to Python? Or if I follow the design pat

10条回答
  •  时光取名叫无心
    2021-01-30 11:53

    On further thought, some patterns, such as Borg, may be more specific to Python (though similar things can be said about other patterns and languages).

    The iterator pattern is also used in Python, albeit in a slightly different form.

    Duncan Booth has written an article on patterns in python.

提交回复
热议问题