neochar
2020-01-22
Comment fix
Super worker implements IWorker so the following code will work
@e9f5a88b577653d7b1c3621b84a0656e8c7cf86e
--- python_code/good/DIP.py
+++ python_code/good/DIP.py
... | ... | @@ -51,7 +51,7 @@ |
51 | 51 |
manager.set_worker(worker) |
52 | 52 |
manager.manage() |
53 | 53 |
|
54 |
- # The following will not work... |
|
54 |
+ # The following will work! |
|
55 | 55 |
super_worker = SuperWorker() |
56 | 56 |
try: |
57 | 57 |
manager.set_worker(super_worker) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?