File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11python-patterns
22===============
33
4- A collection of design patterns implemented (by other people) in python .
4+ A collection of design patterns and idioms in Python .
55
66When 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.
89
910Current Patterns:
1011
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ class Borg:
77
88 def __init__ (self ):
99 self .__dict__ = self .__shared_state
10+ self .state = 'Init'
1011
1112 def __str__ (self ):
1213 return self .state
@@ -44,8 +45,8 @@ class YourBorg(Borg):
4445# rm2: Running
4546# rm1: Zombie
4647# 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