Source

dictionary_switches / code / PatternRefactoring / clip2.py

Full commit
1
2
3
4
5
6
7
# PatternRefactoring/clip2.py
class Messenger:
    # Must change this to add another type:
    MAX_NUM = 4
    def __init__(self, typeNum, val):
        self.type = typeNum % MAX_NUM
        self.data = val