File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
python-patterns
2
2
===============
3
3
4
- A collection of design patterns implemented (by other people) in python .
4
+ A collection of design patterns and idioms in Python .
5
5
6
6
When an implementation is added or modified, be sure to update this file and
7
- rerun ` append_output.sh ` to keep the output comments at the bottom up to date.
7
+ rerun ` append_output.sh ` (eg. ./append_output.sh borg.py) to keep the output
8
+ comments at the bottom up to date.
8
9
9
10
Current Patterns:
10
11
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ class Borg:
7
7
8
8
def __init__ (self ):
9
9
self .__dict__ = self .__shared_state
10
+ self .state = 'Init'
10
11
11
12
def __str__ (self ):
12
13
return self .state
@@ -44,8 +45,8 @@ class YourBorg(Borg):
44
45
# rm2: Running
45
46
# rm1: Zombie
46
47
# rm2: Zombie
47
- # rm1 id: 139825262601040
48
- # rm2 id: 139825262601104
49
- # rm1: Zombie
50
- # rm2: Zombie
51
- # rm3: Zombie
48
+ # rm1 id: 140732837899224
49
+ # rm2 id: 140732837899296
50
+ # rm1: Init
51
+ # rm2: Init
52
+ # rm3: Init
You can’t perform that action at this time.
0 commit comments