Can you help me? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you help me?

Can you provide a way to remove instances of a class from themselves? Since I have a freeze problem, I create a simple game that has a class and a "generator" of instances of this class. The more objects, the more it hangs. Therefore, I would like to find a way to delete objects, or something similar

9th Sep 2021, 5:13 PM
Nemo
Nemo - avatar
2 Answers
0
Try: del object-name
9th Sep 2021, 5:19 PM
Coding Cat
Coding Cat - avatar
0
i want to find a way for the class to delete itself
9th Sep 2021, 5:28 PM
Nemo
Nemo - avatar