silver2row

Trying something that is called Multiple Inheritance!

Jun 13th, 2021
701
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data