3 ms·
> Python does have explicit destructors, at least when using CPython Python has finalizers rather than destructors, though they are sometimes referred to as de
by dragonwriter 7y ago
> Python does have explicit destructors, at least when using CPython
Python has finalizers rather than destructors, though they are sometimes referred to as destructors (the Python docs explicitly note that this is incorrect but not why, there is discussion of the difference—inbthe context of C#—here: https://blogs.msdn.microsoft.com/ericlippert/2010/01/21/whats-the-difference-between-a-destructor-and-a-finalizer/ https://blogs.msdn.microsoft.com/ericlippert/2010/01/21/what... )