Skip to content

Commit 5497aca

Browse files
committed
Update docs with some examples from python ecosystem
1 parent 74d363b commit 5497aca

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

behavioral/command.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
"""
55
*TL;DR80
66
Encapsulates all information needed to perform an action or trigger an event.
7+
8+
*Examples in Python ecosystem:
9+
Django HttpRequest (without `execute` method): https://docs.djangoproject.com/en/2.1/ref/request-response/#httprequest-objects
710
"""
811

912
from __future__ import print_function

behavioral/observer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
77
*TL;DR80
88
Maintains a list of dependents and notifies them of any state changes.
9+
10+
*Examples in Python ecosystem:
11+
Django Signals: https://docs.djangoproject.com/en/2.1/topics/signals/
12+
Flask Signals: http://flask.pocoo.org/docs/1.0/signals/
913
"""
1014

1115
from __future__ import print_function

behavioral/template.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
*TL;DR80
88
Defines the skeleton of a base algorithm, deferring definition of exact
99
steps to subclasses.
10+
11+
*Examples in Python ecosystem:
12+
Django class based views: https://docs.djangoproject.com/en/2.1/topics/class-based-views/
1013
"""
1114

1215

0 commit comments

Comments
 (0)