design-patterns-python
design-patterns-python copied to clipboard
Design Pattern Examples in Python
https://github.com/RefactoringGuru/design-patterns-python/blob/83caf9aa54934ef8671a55d71897112505122453/src/Adapter/Conceptual/class/main.py#L42 I tried, both in ruby and python, we only need to inherit from the `Adaptee` class. Since python support `duck typing` Pls reply if I'm wrong
Hello. I am learning design patterns through the implementations in Python. **The Memento design pattern is supposed to restore previous states, while keeping the information about them, restricted to other...
There is unexpected behavior for the iterator pattern when using some mutable object (list, dict...) as a default parameter, where the same mutable object is referenced in all the instantiated...
Hi guys, I am learning about design patterns and practicing with your code. Could you help me to understand why the break line doesn't appear after running any main.py? ...
The type hints are set to none in the old code, but should be str.
- Fixed typing mistakes (Dict -> List) - Fixed typing mistakes (Dict -> Str) - Removed redundant parentheses in class definitions - Fixed code format according to standards