Discussion about this post

User's avatar
The Coding Gopher's avatar

The bigger difference from vulture is how it decides: unref walks reachability from entry points, so a function only called by other dead code is flagged too, while vulture only flags names nothing references. For a library, list the public API in __all__ or used-names first, or the whole API shows up as dead.

Ready for more?