Jump to content
  • 0

Doubts if it is necessary to destroy the variables in python


valdirk2

Question

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?

iUWK1Gv.png

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

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.