Jan-17-2019, 05:57 PM
I'm beginning to see now. You never instantiate your classes. When you want to persist data, you pickle it and then unpickle it again later. You are not using classes anything like they were intended to be used. It is no wonder that you are running into problems.
If you don't instatiate your classes, you can't save data in instance attributes using self. The only way to store data would be to make meth22 a class method, with a cls paramter instead of a self parameter, and then store it as a cls attribute. But that's just extra effort for no real gain.
You really need to go through a tutorial on classes, and you need to get a better understanding of the object-oriented programming paradigm. Then you need to rewrite your code from the ground up.
If you don't instatiate your classes, you can't save data in instance attributes using self. The only way to store data would be to make meth22 a class method, with a cls paramter instead of a self parameter, and then store it as a cls attribute. But that's just extra effort for no real gain.
You really need to go through a tutorial on classes, and you need to get a better understanding of the object-oriented programming paradigm. Then you need to rewrite your code from the ground up.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures