Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test:
- test_dict = {'test': 0}
- class Test_main:
- def __init__(self):
- self.test_ = Test()
- new1 = Test_main()
- new2 = Test_main()
- new1.test_.test_dict['test'] = 228
- print(str(new1.test_.test_dict)) # {'test': 228}
- print(str(new2.test_.test_dict)) # {'test': 228}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement