Jump to content

Doubts if it is necessary to destroy the variables in python

Recommended Posts

Save guys, I have a question here.
I'm creating my own login screen for metin, and whenever I declare a variable in python, I have the custom in __del__ to set them to None.

I wanted to know if it is really necessary to do this.

For example, I create a variable with the value of a string, or even a ui.Textline(), then is it necessary to set it to None in __del__?
Or does python's own garbage collector clean them?

Another doubt, I also saw the self.ClearDictionary() function, what use is it?


Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now


  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.