lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi, when i reading python doc, i find that if python objects have __del__() methods, and they would not be collected by gc. Because python do not know the save order to run __del__() methods.But, i notice that lua do not have such worries about the order of calling __gc(). So what's difference between lua and py while running fini methods(python's __del__() vs lua's __gc()).

python doc:https://docs.python.org/2.7/library/gc.html#gc.garbage

Thanks!!!
Thorwu