Advertisement
silver2row

Trying something that is called Multiple Inheritance!

Jun 13th, 2021
1,106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. myTUP = ("APP", "BAN", "QUIRK")
  2.  
  3. class Mike:
  4.     def __init__(self, myTUP):
  5.         self.ITEMS = []
  6.         self.__update_it(myTUP)
  7.  
  8.     def update(self, myTUP):
  9.         for Item in myTUP:
  10.             self.ITEMS.append(Item)
  11.  
  12.     __update_it = update # PRIVATE
  13.  
  14. class Mikes_APT(Mike):
  15.     def update(self, keys, values):
  16.         for Item in csv(keys, values):
  17.             self.ITEMS.append(Item)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement