3 ms·
Python does have explicit destructors, at least when using CPython. Having worked on a python codebase for the past eight years, static typing isn't really muc
by war1025 7y ago
Python does have explicit destructors, at least when using CPython.
Having worked on a python codebase for the past eight years, static typing isn't really much of an issue. Just document what types you expect, and write the code to match. If it runs, it runs. Plus, you have pylint to catch most of the silliest mistakes.
- 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... )