lua-users home
lua-l archive

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

for 5.1 for example

On July 28, 2020 at 10:19 AM 吴曼硕 <> 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: