Guest User

Untitled

a guest
Jan 1st, 2020
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #api.py
  2. from classes.a import class_a
  3. from classes.b import class_b
  4.  
  5. a = class_a()
  6. a.test = '123'
  7. b = class_b()
  8.  
  9.  
  10. print(b.start())
  11.  
  12. #classes/a.py
  13. class class_a:
  14. def do_sth(self, x):
  15. return self.test + 5
  16.  
  17. #classes/b.py
  18. from classes.a import class_a as a
  19. class class_b:
  20. def start(self):
  21. return a().do_sth(5)
RAW Paste Data