|
for 5.1 for example https://www.lua.org/manual/5.1/manual.html#2.10
On July 28, 2020 at 10:19 AM 吴曼硕 <wumanshuo@gmail.com> wrote:
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