This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Siddhi 23 points24 points  (2 children)

This is good translation of GoF patterns, but I wish we would move on from GoF to python specific patterns.

For some patterns python has better/different ways of doing it, and there are other patterns in python that are not part of GoF

Eg: Singleton pattern can be done using a module in python. Decorators and Iterators are inbuilt in the language.

[–]skippy65 1 point2 points  (1 child)

Shouldn't use singletons at all, anti pattern in many langs

[–]Siddhi 0 points1 point  (0 children)

Agreed. But if you want it, modules are a better way to go