Last active
August 29, 2015 14:01
-
-
Save holyketzer/95d092f27b3f78df1fbc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Player: | |
def __init__(self, type): | |
self.type = type | |
def do_work(self, *params): | |
if self.type == 'file': | |
# Do something like this | |
lines = open(*params).readlines() | |
for line in lines: | |
self.do_something(line) | |
pass | |
elif self.type == 'internet': | |
# Do something | |
pass | |
elif self.type == 'local_network': | |
# Do something | |
pass | |
def do_something(self, line): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment